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
a834ad3c
Commit
a834ad3c
authored
10 years ago
by
ESCOBAR MUNOZ Juan
Committed by
WAUTELET Philippe
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Juan 15/04/2014: add write to all Z files for all FMWRITX0_ll variables
parent
3c13eb6f
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/fmwrit_ll.f90
+32
-2
32 additions, 2 deletions
src/LIB/SURCOUCHE/src/fmwrit_ll.f90
with
32 additions
and
2 deletions
src/LIB/SURCOUCHE/src/fmwrit_ll.f90
+
32
−
2
View file @
a834ad3c
...
...
@@ -217,6 +217,10 @@ CONTAINS
SUBROUTINE
FMWRITX0_ll
(
HFILEM
,
HRECFM
,
HFIPRI
,
HDIR
,
PFIELD
,
KGRID
,&
KLENCH
,
HCOMMENT
,
KRESP
)
!
! Modification
! J.Escobar 15/04/2014 : add write to all Z files for all FMWRITX0_ll variables
!
USE
MODD_IO_ll
,
ONLY
:
ISP
,
GSMONOPROC
USE
MODD_FM
USE
MODE_FD_ll
,
ONLY
:
GETFD
,
JPFINL
,
FD_LL
...
...
@@ -250,7 +254,12 @@ CONTAINS
TYPE
(
FD_ll
),
POINTER
::
TZFD
INTEGER
::
IRESP
TYPE
(
FMHEADER
)
::
TZFMH
!JUANZIO
INTEGER
::
IK_FILE
,
IK_rank
CHARACTER
(
len
=
5
)
::
YK_FILE
CHARACTER
(
len
=
128
)
::
YFILE_IOZ
TYPE
(
FD_ll
),
POINTER
::
TZFD_IOZ
!JUANZIO
!
!* 1.1 THE NAME OF LFIFM
!
...
...
@@ -318,7 +327,28 @@ CONTAINS
END
IF
!
CALL
MPI_BCAST
(
IRESP
,
1
,
MPI_INTEGER
,
TZFD
%
OWNER
-1
,
TZFD
%
COMM
,
IERR
)
END
IF
END
IF
! multiprocessor execution
IF
(
TZFD
%
nb_procio
.gt.
1
)
THEN
! write the data in all Z files
DO
IK_FILE
=
1
,
TZFD
%
nb_procio
write
(
YK_FILE
,
'(".Z",i3.3)'
)
IK_FILE
YFILE_IOZ
=
TRIM
(
HFILEM
)//
YK_FILE
//
".lfi"
TZFD_IOZ
=>
GETFD
(
YFILE_IOZ
)
IK_RANK
=
TZFD_IOZ
%
OWNER
IF
(
ISP
==
IK_RANK
)
THEN
TZFMH
%
GRID
=
KGRID
TZFMH
%
COMLEN
=
KLENCH
TZFMH
%
COMMENT
=
HCOMMENT
#ifdef MNH_NCWRIT
IF
(
DEF_NC
.AND.
LLFIFM
)
THEN
CALL
FM_WRIT_ll
(
TZFD_IOZ
%
FLU
,
HRECFM
,
.FALSE.
,
1
,
PFIELD
,
TZFMH
,
IRESP
)
END
IF
#else
CALL
FM_WRIT_ll
(
TZFD_IOZ
%
FLU
,
HRECFM
,
.FALSE.
,
1
,
PFIELD
,
TZFMH
,
IRESP
)
#endif
END
IF
END
DO
ENDIF
ELSE
IRESP
=
-61
END
IF
...
...
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