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
c929675b
Commit
c929675b
authored
6 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 05/04/2018: IO: store XHAT and YHAT when written by SURFEX (needed by PREP_PGD program)
parent
466a1832
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/MNH/write_surf_mnh.f90
+11
-0
11 additions, 0 deletions
src/MNH/write_surf_mnh.f90
with
11 additions
and
0 deletions
src/MNH/write_surf_mnh.f90
+
11
−
0
View file @
c929675b
...
...
@@ -257,6 +257,7 @@ USE MODE_TOOLS_ll
USE
MODE_WRITE_SURF_MNH_TOOLS
!
USE
MODD_CONF_n
,
ONLY
:
CSTORAGE_TYPE
USE
MODD_GRID_n
,
ONLY
:
XXHAT
,
XYHAT
USE
MODD_IO_ll
,
ONLY
:
TFILE_SURFEX
USE
MODD_IO_SURF_MNH
,
ONLY
:
NMASK
,
CMASK
,
&
NIU
,
NJU
,
NIB
,
NJB
,
NIE
,
NJE
,
&
...
...
@@ -408,6 +409,11 @@ IF ( (CSTORAGE_TYPE=='PG' .OR. CSTORAGE_TYPE=='SU') &
IF
(
HDIR
==
'H'
)
THEN
CALL
FIND_FIELD_ID_FROM_MNHNAME
(
'XHAT'
,
IID
,
IRESP
)
CALL
IO_WRITE_FIELD
(
TFILE_SURFEX
,
TFIELDLIST
(
IID
),
ZW1D
(
1
+
NHALO
:
IIU
-
NHALO
),
KRESP
)
IF
(
.NOT.
(
ASSOCIATED
(
XXHAT
)))
THEN
!Store XXHAT if not yet done (necessary for PREP_PGD program when writing netCDF files)
ALLOCATE
(
XXHAT
(
IIU
-2
*
NHALO
))
XXHAT
(:)
=
ZW1D
(
1
+
NHALO
:
IIU
-
NHALO
)
END
IF
END
IF
DEALLOCATE
(
ZW1D
)
ELSE
IF
(
(
CSTORAGE_TYPE
==
'PG'
.OR.
CSTORAGE_TYPE
==
'SU'
)
&
...
...
@@ -434,6 +440,11 @@ ELSE IF ( (CSTORAGE_TYPE=='PG' .OR. CSTORAGE_TYPE=='SU') &
IF
(
HDIR
==
'H'
)
THEN
CALL
FIND_FIELD_ID_FROM_MNHNAME
(
'YHAT'
,
IID
,
IRESP
)
CALL
IO_WRITE_FIELD
(
TFILE_SURFEX
,
TFIELDLIST
(
IID
),
ZW1D
(
1
+
NHALO
:
IJU
-
NHALO
),
KRESP
)
IF
(
.NOT.
(
ASSOCIATED
(
XYHAT
)))
THEN
!Store XYHAT if not yet done (necessary for PREP_PGD program when writing netCDF files)
ALLOCATE
(
XYHAT
(
IJU
-2
*
NHALO
))
XYHAT
(:)
=
ZW1D
(
1
+
NHALO
:
IJU
-
NHALO
)
END
IF
END
IF
DEALLOCATE
(
ZW1D
)
ELSE
IF
(
HDIR
==
'H'
)
THEN
...
...
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