Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
M
Méso-NH code
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Méso-NH
Méso-NH code
Commits
0d12a502
Commit
0d12a502
authored
4 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 18/03/2021: workaround for an intel compiler bug (corrected in 19.1.2)
parent
dfa2eec7
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/LIB/SURCOUCHE/src/mode_io_tools_nc4.f90
+21
-1
21 additions, 1 deletion
src/LIB/SURCOUCHE/src/mode_io_tools_nc4.f90
with
21 additions
and
1 deletion
src/LIB/SURCOUCHE/src/mode_io_tools_nc4.f90
+
21
−
1
View file @
0d12a502
!MNH_LIC Copyright 1994-202
0
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 1994-202
1
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
!MNH_LIC This is part of the Meso-NH software governed by the CeCILL-C licence
!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC for details. version 1.
!MNH_LIC for details. version 1.
...
@@ -16,6 +16,7 @@
...
@@ -16,6 +16,7 @@
! P. Wautelet 10/11/2020: new data structures for netCDF dimensions
! P. Wautelet 10/11/2020: new data structures for netCDF dimensions
! P. Wautelet 26/11/2020: IO_Vdims_fill_nc4: support for empty kshape
! P. Wautelet 26/11/2020: IO_Vdims_fill_nc4: support for empty kshape
! P. Wautelet 08/12/2020: add nbutotwrite
! P. Wautelet 08/12/2020: add nbutotwrite
! P. Wautelet 18/03/2021: workaround for an intel compiler bug (corrected in 19.1.2)
!-----------------------------------------------------------------
!-----------------------------------------------------------------
#ifdef MNH_IOCDF4
#ifdef MNH_IOCDF4
module
mode_io_tools_nc4
module
mode_io_tools_nc4
...
@@ -691,7 +692,17 @@ if ( kidx == - 1 ) then
...
@@ -691,7 +692,17 @@ if ( kidx == - 1 ) then
if
(
istatus
/
=
NF90_NOERR
)
&
if
(
istatus
/
=
NF90_NOERR
)
&
call
IO_Err_handle_nc4
(
istatus
,
'IO_Dim_find_create_nc4'
,
'NF90_DEF_DIM'
,
Trim
(
tzncdims
(
inewsize
)
%
cname
)
)
call
IO_Err_handle_nc4
(
istatus
,
'IO_Dim_find_create_nc4'
,
'NF90_DEF_DIM'
,
Trim
(
tzncdims
(
inewsize
)
%
cname
)
)
#if 0
!Disabled here due to a bug in the Intel compiler (corrected in the 19.1.2 version)
call
Move_alloc
(
from
=
tzncdims
,
to
=
tpfile
%
tncdims
%
tdims
)
call
Move_alloc
(
from
=
tzncdims
,
to
=
tpfile
%
tncdims
%
tdims
)
#else
!Do the Move_alloc by hand...
Deallocate
(
tpfile
%
tncdims
%
tdims
)
Allocate
(
tpfile
%
tncdims
%
tdims
(
Size
(
tzncdims
))
)
tpfile
%
tncdims
%
tdims
(:)
=
tzncdims
Deallocate
(
tzncdims
)
#endif
tpfile
%
tncdims
%
nmaxdims
=
inewsize
tpfile
%
tncdims
%
nmaxdims
=
inewsize
kidx
=
inewsize
kidx
=
inewsize
...
@@ -747,7 +758,16 @@ if ( idx == -1 ) then
...
@@ -747,7 +758,16 @@ if ( idx == -1 ) then
if
(
istatus
/
=
NF90_NOERR
)
&
if
(
istatus
/
=
NF90_NOERR
)
&
call
IO_Err_handle_nc4
(
istatus
,
'IO_Strdimid_get_nc4'
,
'NF90_DEF_DIM'
,
Trim
(
tzncdims
(
inewsize
)
%
cname
)
)
call
IO_Err_handle_nc4
(
istatus
,
'IO_Strdimid_get_nc4'
,
'NF90_DEF_DIM'
,
Trim
(
tzncdims
(
inewsize
)
%
cname
)
)
#if 0
!Disabled here due to a bug in the Intel compiler (corrected in the 19.1.2 version)
call
Move_alloc
(
from
=
tzncdims
,
to
=
tpfile
%
tncdims
%
tdims_str
)
call
Move_alloc
(
from
=
tzncdims
,
to
=
tpfile
%
tncdims
%
tdims_str
)
#else
!Do the Move_alloc by hand...
Deallocate
(
tpfile
%
tncdims
%
tdims_str
)
Allocate
(
tpfile
%
tncdims
%
tdims_str
(
Size
(
tzncdims
))
)
tpfile
%
tncdims
%
tdims_str
(:)
=
tzncdims
(:)
Deallocate
(
tzncdims
)
#endif
tpfile
%
tncdims
%
nmaxdims_str
=
inewsize
tpfile
%
tncdims
%
nmaxdims_str
=
inewsize
idx
=
inewsize
idx
=
inewsize
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment