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
RODIER Quentin
Méso-NH code
Commits
a7413073
Commit
a7413073
authored
1 year ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 01/09/2023: IO: bugfix: fix a memory leak for Z-split files
parent
4082f5cc
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/LIB/SURCOUCHE/src/mode_io_file.f90
+1
-0
1 addition, 0 deletions
src/LIB/SURCOUCHE/src/mode_io_file.f90
src/LIB/SURCOUCHE/src/mode_io_write_nc4.f90
+5
-0
5 additions, 0 deletions
src/LIB/SURCOUCHE/src/mode_io_write_nc4.f90
with
6 additions
and
0 deletions
src/LIB/SURCOUCHE/src/mode_io_file.f90
+
1
−
0
View file @
a7413073
...
...
@@ -593,6 +593,7 @@ SELECT CASE(TPFILE%CTYPE)
#ifdef MNH_IOCDF4
!Remark: IO_Coordvar_write_nc4 disabled (for the moment) for Z-split files
! because it introduce a serialization due to MPI communications inside the call
! WARNING: if uncommented, please modify IO_Coordvar_write_nc4 to enable block concerning gdealloc
! !Write coordinates variables in netCDF file
! IF (TZFILE_IOZ%CMODE == 'WRITE' .AND. (TZFILE_IOZ%CFORMAT=='NETCDF4' .OR. TZFILE_IOZ%CFORMAT=='LFICDF4')) THEN
! CALL IO_Coordvar_write_nc4(TZFILE_IOZ,HPROGRAM_ORIG=HPROGRAM_ORIG)
...
...
This diff is collapsed.
Click to expand it.
src/LIB/SURCOUCHE/src/mode_io_write_nc4.f90
+
5
−
0
View file @
a7413073
...
...
@@ -1612,6 +1612,8 @@ call Write_hor_coord1d( tzdim_ni_v, 'x-dimension of the grid at v location', &
call
Write_hor_coord1d
(
tzdim_nj_v
,
'y-dimension of the grid at v location'
,
&
trim
(
ystdnameprefix
)//
'_y_coordinate_at_v_location'
,
'Y'
,
-0.5
,
jphext
,
0
,
zyhat_glob
)
!Warning: the following block has to be reenabled if IO_Coordvar_write_nc4 is again called for Z-split files
#if 0
!Deallocate only if it is a non Z-split file or the last Z-split subfile
gdealloc
=
.false.
if
(
Associated
(
tpfile
%
tmainfile
)
)
then
...
...
@@ -1619,6 +1621,9 @@ if ( Associated( tpfile%tmainfile ) ) then
else
if
(
tpfile
%
nsubfiles_ioz
==
0
.and.
.not.
Associated
(
tpfile
%
tmainfile
)
)
then
gdealloc
=
.true.
end
if
#else
gdealloc
=
.true.
#endif
if
(
.not.
lcartesian
)
then
!Compute latitude/longitude for the Arakawa points
...
...
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