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
0eb4b4e6
Commit
0eb4b4e6
authored
6 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 18/02/2019: IO: bugfixes for nsubfiles_ioz
parent
bb9b30b3
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_manage_struct.f90
+13
-9
13 additions, 9 deletions
src/LIB/SURCOUCHE/src/mode_io_manage_struct.f90
with
13 additions
and
9 deletions
src/LIB/SURCOUCHE/src/mode_io_manage_struct.f90
+
13
−
9
View file @
0eb4b4e6
...
@@ -15,6 +15,7 @@
...
@@ -15,6 +15,7 @@
! P. Wautelet 07/02/2019: force TYPE to a known value for IO_FILE_ADD2LIST
! P. Wautelet 07/02/2019: force TYPE to a known value for IO_FILE_ADD2LIST
! P. Wautelet 07/02/2019: remove OPARALLELIO argument from open and close files subroutines
! P. Wautelet 07/02/2019: remove OPARALLELIO argument from open and close files subroutines
! (nsubfiles_ioz is now determined in IO_FILE_ADD2LIST)
! (nsubfiles_ioz is now determined in IO_FILE_ADD2LIST)
! P. Wautelet 18/02/2019: bugfixes for nsubfiles_ioz
!-----------------------------------------------------------------
!-----------------------------------------------------------------
MODULE
MODE_IO_MANAGE_STRUCT
MODULE
MODE_IO_MANAGE_STRUCT
!
!
...
@@ -584,8 +585,8 @@ SUBROUTINE POPULATE_STRUCT(TPFILE_FIRST,TPFILE_LAST,KSTEPS,HFILETYPE,TPBAKOUTN)
...
@@ -584,8 +585,8 @@ SUBROUTINE POPULATE_STRUCT(TPFILE_FIRST,TPFILE_LAST,KSTEPS,HFILETYPE,TPBAKOUTN)
!
!
!Create file structures if Z-splitted files
!Create file structures if Z-splitted files
IF
(
NB_PROCIO_W
>
1
)
THEN
IF
(
NB_PROCIO_W
>
1
)
THEN
TPBAKOUTN
(
IPOS
)
%
TFILE
%
NSUBFILES_IOZ
=
NB_PROCIO_W
ALLOCATE
(
TPBAKOUTN
(
IPOS
)
%
TFILE
%
TFILES_IOZ
(
NB_PROCIO_W
))
ALLOCATE
(
TPBAKOUTN
(
IPOS
)
%
TFILE
%
TFILES_IOZ
(
NB_PROCIO_W
))
! ALLOCATE(TPBAKOUTN(IPOS)%TFILE_IOZ(NB_PROCIO_W))
IF
(
NB_PROCIO_W
>
999
)
THEN
IF
(
NB_PROCIO_W
>
999
)
THEN
CALL
PRINT_MSG
(
NVERB_FATAL
,
'IO'
,
'POPULATE_STRUCT'
,
'more than 999 z-levels'
)
CALL
PRINT_MSG
(
NVERB_FATAL
,
'IO'
,
'POPULATE_STRUCT'
,
'more than 999 z-levels'
)
END
IF
END
IF
...
@@ -800,17 +801,20 @@ else
...
@@ -800,17 +801,20 @@ else
! MNH/MNHBACKUP/MNHOUTPUT
! MNH/MNHBACKUP/MNHOUTPUT
!Remark: 'MNH' is more general than MNHBACKUP and could be in fact a MNHBACKUP file
!Remark: 'MNH' is more general than MNHBACKUP and could be in fact a MNHBACKUP file
gsplit_ioz
=
.true.
gsplit_ioz
=
.true.
select
case
(
hmode
)
case
(
'READ'
)
tpfile
%
nsubfiles_ioz
=
nb_procio_r
case
(
'WRITE'
)
tpfile
%
nsubfiles_ioz
=
nb_procio_w
end
select
if
(
tpfile
%
nsubfiles_ioz
==
1
)
tpfile
%
nsubfiles_ioz
=
0
end
if
end
if
end
if
end
if
end
if
end
if
!
if
(
gsplit_ioz
)
then
select
case
(
hmode
)
case
(
'READ'
)
tpfile
%
nsubfiles_ioz
=
nb_procio_r
case
(
'WRITE'
)
tpfile
%
nsubfiles_ioz
=
nb_procio_w
end
select
if
(
tpfile
%
nsubfiles_ioz
==
1
)
tpfile
%
nsubfiles_ioz
=
0
end
if
SELECT
CASE
(
TPFILE
%
CTYPE
)
SELECT
CASE
(
TPFILE
%
CTYPE
)
!Chemistry input files
!Chemistry input files
CASE
(
'CHEMINPUT'
)
CASE
(
'CHEMINPUT'
)
...
...
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