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
8dab6730
Commit
8dab6730
authored
9 years ago
by
Gaelle Tanguy
Committed by
WAUTELET Philippe
8 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Gaelle 18/01/2016: modif for PREPLL from M.Moge
parent
2814bcfe
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/MNH/get_nb_procio_read_mnh.f90
+79
-0
79 additions, 0 deletions
src/MNH/get_nb_procio_read_mnh.f90
src/MNH/get_nb_procio_write_mnh.f90
+79
-0
79 additions, 0 deletions
src/MNH/get_nb_procio_write_mnh.f90
with
158 additions
and
0 deletions
src/MNH/get_nb_procio_read_mnh.f90
0 → 100644
+
79
−
0
View file @
8dab6730
!MNH_LIC Copyright 1994-2014 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.
SUBROUTINE
GET_NB_PROCIO_READ_MNH
(
KNB_PROCIO
,
KRESP
)
!
!!**** *GET_NB_PROCIO_READ_MNH* - gets the number of processes used for Input of file MODD_IO_SURF_MNH::CFILE
!!
!!
!! PURPOSE
!! -------
!! call GET_NB_PROCIO_READ_MNH from SURFEX to get the number of processes used
!! for Iinput of file MODD_IO_SURF_MNH::CFILE in MESO-NH (defined by user in namelist)
!!
!!** METHOD
!! ------
!!
!! EXTERNAL
!! --------
!!
!!
!! IMPLICIT ARGUMENTS
!! ------------------
!!
!! REFERENCE
!! ---------
!!
!!
!! AUTHOR
!! ------
!! M. Moge *LA - UPS* 08/01/2016
!!
!! MODIFICATIONS
!! -------------
!!
!-------------------------------------------------------------------------------
!
USE
MODE_FD_ll
,
ONLY
:
GETFD
,
JPFINL
,
FD_ll
USE
MODD_IO_SURF_MNH
,
ONLY
:
COUT
,
CFILE
!
IMPLICIT
NONE
!
!* 0. DECLARATIONS
! ------------
!
!* 0.1 Declarations of arguments
!
!CHARACTER(LEN=*), INTENT(IN) :: HFILEM ! FM-file name
INTEGER
,
INTENT
(
OUT
)
::
KNB_PROCIO
! number of processes used for IO
INTEGER
,
INTENT
(
OUT
)
::
KRESP
! return-code
!
!* 0.2 Declarations of local variables
!
!----------------------------------------------------------------
CHARACTER
(
LEN
=
JPFINL
)
::
YFNLFI
TYPE
(
FD_ll
),
POINTER
::
TZFD
INTEGER
::
IRESP
INTEGER
::
ILUPRI
!
!* 1. get the number of processes used for IO
!
IRESP
=
0
YFNLFI
=
TRIM
(
ADJUSTL
(
CFILE
))//
'.lfi'
!
TZFD
=>
GETFD
(
YFNLFI
)
IF
(
ASSOCIATED
(
TZFD
))
THEN
KNB_PROCIO
=
TZFD
%
nb_procio
ELSE
IRESP
=
-61
END
IF
!----------------------------------------------------------------
IF
(
IRESP
.NE.
0
)
THEN
CALL
FMLOOK_ll
(
COUT
,
COUT
,
ILUPRI
,
IRESP
)
WRITE
(
ILUPRI
,
*
)
' exit from GET_NB_PROCIO_READ_MNH with RESP:'
,
IRESP
WRITE
(
ILUPRI
,
*
)
' | CFILE = '
,
CFILE
END
IF
KRESP
=
IRESP
!
END
SUBROUTINE
GET_NB_PROCIO_READ_MNH
\ No newline at end of file
This diff is collapsed.
Click to expand it.
src/MNH/get_nb_procio_write_mnh.f90
0 → 100644
+
79
−
0
View file @
8dab6730
!MNH_LIC Copyright 1994-2014 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.
SUBROUTINE
GET_NB_PROCIO_WRITE_MNH
(
KNB_PROCIO
,
KRESP
)
!
!!**** *GET_NB_PROCIO_WRITE_MNH* - gets the number of processes used for Output of file MODD_IO_SURF_MNH::COUTFILE
!!
!!
!! PURPOSE
!! -------
!! call GET_NB_PROCIO_WRITE_MNH from SURFEX to get the number of processes used
!! for Output of file MODD_IO_SURF_MNH::COUTFILE in MESO-NH (defined by user in namelist)
!!
!!** METHOD
!! ------
!!
!! EXTERNAL
!! --------
!!
!!
!! IMPLICIT ARGUMENTS
!! ------------------
!!
!! REFERENCE
!! ---------
!!
!!
!! AUTHOR
!! ------
!! M. Moge *LA - UPS* 08/01/2016
!!
!! MODIFICATIONS
!! -------------
!!
!-------------------------------------------------------------------------------
!
USE
MODE_FD_ll
,
ONLY
:
GETFD
,
JPFINL
,
FD_ll
USE
MODD_IO_SURF_MNH
,
ONLY
:
COUT
,
COUTFILE
!
IMPLICIT
NONE
!
!* 0. DECLARATIONS
! ------------
!
!* 0.1 Declarations of arguments
!
!CHARACTER(LEN=*), INTENT(IN) :: HFILEM ! FM-file name
INTEGER
,
INTENT
(
OUT
)
::
KNB_PROCIO
! number of processes used for IO
INTEGER
,
INTENT
(
OUT
)
::
KRESP
! return-code
!
!* 0.2 Declarations of local variables
!
!----------------------------------------------------------------
CHARACTER
(
LEN
=
JPFINL
)
::
YFNLFI
TYPE
(
FD_ll
),
POINTER
::
TZFD
INTEGER
::
IRESP
INTEGER
::
ILUPRI
!
!* 1. get the number of processes used for IO
!
IRESP
=
0
YFNLFI
=
TRIM
(
ADJUSTL
(
COUTFILE
))//
'.lfi'
!
TZFD
=>
GETFD
(
YFNLFI
)
IF
(
ASSOCIATED
(
TZFD
))
THEN
KNB_PROCIO
=
TZFD
%
nb_procio
ELSE
IRESP
=
-61
END
IF
!----------------------------------------------------------------
IF
(
IRESP
.NE.
0
)
THEN
CALL
FMLOOK_ll
(
COUT
,
COUT
,
ILUPRI
,
IRESP
)
WRITE
(
ILUPRI
,
*
)
' exit from GET_NB_PROCIO_WRITE_MNH with RESP:'
,
IRESP
WRITE
(
ILUPRI
,
*
)
' | COUTFILE = '
,
COUTFILE
END
IF
KRESP
=
IRESP
!
END
SUBROUTINE
GET_NB_PROCIO_WRITE_MNH
\ No newline at end of file
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