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
08472d04
Commit
08472d04
authored
10 months ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 06/05/2024: outputs: do not write 2D coordinates for main domain if not needed
parent
40b05b72
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/LIB/SURCOUCHE/src/mode_io_write_nc4.f90
+17
-1
17 additions, 1 deletion
src/LIB/SURCOUCHE/src/mode_io_write_nc4.f90
with
17 additions
and
1 deletion
src/LIB/SURCOUCHE/src/mode_io_write_nc4.f90
+
17
−
1
View file @
08472d04
...
@@ -1863,7 +1863,7 @@ if ( .not. lcartesian ) then
...
@@ -1863,7 +1863,7 @@ if ( .not. lcartesian ) then
call
Gather_hor_coord2d
(
zxhat
,
zyhat
,
zlatf_glob
,
zlonf_glob
)
call
Gather_hor_coord2d
(
zxhat
,
zyhat
,
zlatf_glob
,
zlonf_glob
)
end
if
end
if
if
(
tzfile
%
ctype
/
=
'MNHOUTPUT'
.or.
lout_bigbox_write
)
then
!Do not write coordinates of main domain if it is not written
if
(
tzfile
%
ctype
/
=
'MNHOUTPUT'
)
then
!Do not write coordinates of main domain if it is not written
! Mass point
! Mass point
call
Write_hor_coord2d
(
zlatm_glob
,
zlonm_glob
,
'latitude'
,
'longitude'
,
iim_min
,
iim_max
,
ijm_min
,
ijm_max
)
call
Write_hor_coord2d
(
zlatm_glob
,
zlonm_glob
,
'latitude'
,
'longitude'
,
iim_min
,
iim_max
,
ijm_min
,
ijm_max
)
! u point
! u point
...
@@ -1872,6 +1872,22 @@ if ( .not. lcartesian ) then
...
@@ -1872,6 +1872,22 @@ if ( .not. lcartesian ) then
call
Write_hor_coord2d
(
zlatv_glob
,
zlonv_glob
,
'latitude_v'
,
'longitude_v'
,
iiv_min
,
iiv_max
,
ijv_min
,
ijv_max
)
call
Write_hor_coord2d
(
zlatv_glob
,
zlonv_glob
,
'latitude_v'
,
'longitude_v'
,
iiv_min
,
iiv_max
,
ijv_min
,
ijv_max
)
! xi vorticity point (=f point =uv point)
! xi vorticity point (=f point =uv point)
call
Write_hor_coord2d
(
zlatf_glob
,
zlonf_glob
,
'latitude_f'
,
'longitude_f'
,
iiu_min
,
iiu_max
,
ijv_min
,
ijv_max
)
call
Write_hor_coord2d
(
zlatf_glob
,
zlonf_glob
,
'latitude_f'
,
'longitude_f'
,
iiu_min
,
iiu_max
,
ijv_min
,
ijv_max
)
else
if
(
tzfile
%
ctype
==
'MNHOUTPUT'
.and.
lout_bigbox_write
)
then
!Do not write coordinates of main domain if it is not written
! Write both coordinates (lat and lon even if only one of them is needed).
! In practice, this simplification should not have real impact (most of the time, the 2 coordinates appear simultaneously)
! Mass point
if
(
tout_boxes
(
0
)
%
lcoord_latm
.or.
tout_boxes
(
0
)
%
lcoord_latm
)
&
call
Write_hor_coord2d
(
zlatm_glob
,
zlonm_glob
,
'latitude'
,
'longitude'
,
iim_min
,
iim_max
,
ijm_min
,
ijm_max
)
! u point
if
(
tout_boxes
(
0
)
%
lcoord_latu
.or.
tout_boxes
(
0
)
%
lcoord_latu
)
&
call
Write_hor_coord2d
(
zlatu_glob
,
zlonu_glob
,
'latitude_u'
,
'longitude_u'
,
iiu_min
,
iiu_max
,
iju_min
,
iju_max
)
! v point
if
(
tout_boxes
(
0
)
%
lcoord_latv
.or.
tout_boxes
(
0
)
%
lcoord_latv
)
&
call
Write_hor_coord2d
(
zlatv_glob
,
zlonv_glob
,
'latitude_v'
,
'longitude_v'
,
iiv_min
,
iiv_max
,
ijv_min
,
ijv_max
)
! xi vorticity point (=f point =uv point)
if
(
tout_boxes
(
0
)
%
lcoord_latf
.or.
tout_boxes
(
0
)
%
lcoord_latf
)
&
call
Write_hor_coord2d
(
zlatf_glob
,
zlonf_glob
,
'latitude_f'
,
'longitude_f'
,
iiu_min
,
iiu_max
,
ijv_min
,
ijv_max
)
end
if
end
if
Deallocate
(
zlat
,
zlon
)
Deallocate
(
zlat
,
zlon
)
...
...
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