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
383c44f7
Commit
383c44f7
authored
2 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 13/01/2023: set NMODEL field for backup and output files
parent
08bbeaf4
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_manage_struct.f90
+9
-5
9 additions, 5 deletions
src/LIB/SURCOUCHE/src/mode_io_manage_struct.f90
with
9 additions
and
5 deletions
src/LIB/SURCOUCHE/src/mode_io_manage_struct.f90
+
9
−
5
View file @
383c44f7
!MNH_LIC Copyright 2016-202
2
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 2016-202
3
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 version 1. See LICENSE, CeCILL-C_V1-en.txt and CeCILL-C_V1-fr.txt
!MNH_LIC for details. version 1.
...
...
@@ -20,7 +20,8 @@
! S. Donnier 28/02/2020: type STREAM needed for use of ECOCLIMAP SG
! P. Wautelet 08/01/2021: allow output files with empty variable list (useful if IO_Field_user_write is not empty)
! P. Wautelet 18/03/2022: minor bugfix in ISTEP_MAX computation + adapt diagnostics messages
(
change
verbosity
level
and
remove
some
unnecessary
warnings
)
! (change verbosity level and remove some unnecessary warnings)
! P. Wautelet 13/01/2023: set NMODEL field for backup and output files
!-----------------------------------------------------------------
MODULE
MODE_IO_MANAGE_STRUCT
!
...
...
@@ -213,8 +214,8 @@ DO IMI = 1, NMODEL
ALLOCATE
(
OUT_MODEL
(
IMI
)
%
TBACKUPN
(
IBAK_NUMB
))
ALLOCATE
(
OUT_MODEL
(
IMI
)
%
TOUTPUTN
(
IOUT_NUMB
))
!
CALL
POPULATE_STRUCT
(
TFILE_FIRST
,
TFILE_LAST
,
IBAK_STEP
,
"MNHBACKUP"
,
OUT_MODEL
(
IMI
)
%
TBACKUPN
)
CALL
POPULATE_STRUCT
(
TFILE_FIRST
,
TFILE_LAST
,
IOUT_STEP
,
"MNHOUTPUT"
,
OUT_MODEL
(
IMI
)
%
TOUTPUTN
)
CALL
POPULATE_STRUCT
(
TFILE_FIRST
,
TFILE_LAST
,
IBAK_STEP
,
"MNHBACKUP"
,
OUT_MODEL
(
IMI
)
%
TBACKUPN
,
IMI
)
CALL
POPULATE_STRUCT
(
TFILE_FIRST
,
TFILE_LAST
,
IOUT_STEP
,
"MNHOUTPUT"
,
OUT_MODEL
(
IMI
)
%
TOUTPUTN
,
IMI
)
!
!* Find dad output number
!
...
...
@@ -521,7 +522,7 @@ SUBROUTINE SORT_ENTRIES(KNUMB,KSTEPS)
END
SUBROUTINE
SORT_ENTRIES
!
!#########################################################################
SUBROUTINE
POPULATE_STRUCT
(
TPFILE_FIRST
,
TPFILE_LAST
,
KSTEPS
,
HFILETYPE
,
TPBAKOUTN
)
SUBROUTINE
POPULATE_STRUCT
(
TPFILE_FIRST
,
TPFILE_LAST
,
KSTEPS
,
HFILETYPE
,
TPBAKOUTN
,
KMI
)
!#########################################################################
!
USE
MODD_CONFZ
,
ONLY
:
NB_PROCIO_W
...
...
@@ -530,6 +531,7 @@ SUBROUTINE POPULATE_STRUCT(TPFILE_FIRST,TPFILE_LAST,KSTEPS,HFILETYPE,TPBAKOUTN)
INTEGER
,
DIMENSION
(:),
INTENT
(
IN
)
::
KSTEPS
CHARACTER
(
LEN
=*
),
INTENT
(
IN
)
::
HFILETYPE
TYPE
(
TOUTBAK
),
DIMENSION
(:),
POINTER
,
INTENT
(
IN
)
::
TPBAKOUTN
INTEGER
,
INTENT
(
IN
)
::
KMI
! Model number
!
CHARACTER
(
LEN
=
3
)
::
YNUMBER
! Character string for the file number
INTEGER
::
JI
...
...
@@ -601,6 +603,8 @@ SUBROUTINE POPULATE_STRUCT(TPFILE_FIRST,TPFILE_LAST,KSTEPS,HFILETYPE,TPBAKOUTN)
CALL
PRINT_MSG
(
NVERB_FATAL
,
'IO'
,
'POPULATE_STRUCT'
,
'unknown backup/output fileformat'
)
ENDIF
!
TPBAKOUTN
(
IPOS
)
%
TFILE
%
NMODEL
=
KMI
!
!Create file structures if Z-split files
IF
(
NB_PROCIO_W
>
1
)
THEN
TPBAKOUTN
(
IPOS
)
%
TFILE
%
NSUBFILES_IOZ
=
NB_PROCIO_W
...
...
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