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
0e0491f9
Commit
0e0491f9
authored
3 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 24/09/2021: add NLONGNAMELGTMAX and NUNITLGTMAX parameters + use them
parent
95d018cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/LIB/SURCOUCHE/src/modd_field.f90
+7
-7
7 additions, 7 deletions
src/LIB/SURCOUCHE/src/modd_field.f90
src/MNH/ini_budget.f90
+4
-4
4 additions, 4 deletions
src/MNH/ini_budget.f90
src/MNH/modd_parameters.f90
+12
-9
12 additions, 9 deletions
src/MNH/modd_parameters.f90
with
23 additions
and
20 deletions
src/LIB/SURCOUCHE/src/modd_field.f90
+
7
−
7
View file @
0e0491f9
!MNH_LIC Copyright 2016-202
0
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 2016-202
1
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.
...
...
@@ -15,7 +15,7 @@
!-----------------------------------------------------------------
module
modd_field
use
modd_parameters
,
only
:
NGRIDUNKNOWN
,
NMNHNAMELGTMAX
,
NSTDNAMELGTMAX
use
modd_parameters
,
only
:
NGRIDUNKNOWN
,
NMNHNAMELGTMAX
,
NSTDNAMELGTMAX
,
NLONGNAMELGTMAX
,
NUNITLGTMAX
,
NCOMMENTLGTMAX
use
modd_type_date
,
only
:
date_time
#ifdef MNH_IOCDF4
use
NETCDF
,
only
:
NF90_FILL_INT
,
NF90_FILL_REAL
...
...
@@ -179,11 +179,11 @@ TYPE TFIELDPTR_T1D
END
TYPE
TFIELDPTR_T1D
!
type
::
tfield_metadata_base
CHARACTER
(
LEN
=
NMNHNAMELGTMAX
)
::
CMNHNAME
=
''
!Name of the field (for MesoNH, non CF convention)
CHARACTER
(
LEN
=
NSTDNAMELGTMAX
)
::
CSTDNAME
=
''
!Standard name (CF convention)
CHARACTER
(
LEN
=
32
)
::
CLONGNAME
=
''
!Long name (CF convention)
CHARACTER
(
LEN
=
40
)
::
CUNITS
=
''
!Canonical units (CF convention)
CHARACTER
(
LEN
=
100
)
::
CCOMMENT
=
''
!Comment (for MesoNH, non CF convention)
CHARACTER
(
LEN
=
NMNHNAMELGTMAX
)
::
CMNHNAME
=
''
!Name of the field (for MesoNH, non CF convention)
CHARACTER
(
LEN
=
NSTDNAMELGTMAX
)
::
CSTDNAME
=
''
!Standard name (CF convention)
CHARACTER
(
LEN
=
NLONGNAMELGTMAX
)
::
CLONGNAME
=
''
!Long name (CF convention)
CHARACTER
(
LEN
=
NUNITLGTMAX
)
::
CUNITS
=
''
!Canonical units (CF convention)
CHARACTER
(
LEN
=
NCOMMENTLGTMAX
)
::
CCOMMENT
=
''
!Comment (for MesoNH, non CF convention)
INTEGER
::
NGRID
=
NGRIDUNKNOWN
!Localization on the model grid
INTEGER
::
NTYPE
=
TYPEUNDEF
!Datatype
INTEGER
::
NDIMS
=
0
!Number of dimensions
...
...
This diff is collapsed.
Click to expand it.
src/MNH/ini_budget.f90
+
4
−
4
View file @
0e0491f9
...
...
@@ -4148,7 +4148,7 @@ end subroutine Budget_source_add
subroutine
Ini_budget_groups
(
tpbudgets
,
kbudim1
,
kbudim2
,
kbudim3
)
use
modd_budget
,
only
:
tbudgetdata
use
modd_field
,
only
:
TYPEINT
,
TYPEREAL
use
modd_parameters
,
only
:
NMNHNAMELGTMAX
,
NSTDNAMELGTMAX
use
modd_parameters
,
only
:
NMNHNAMELGTMAX
,
NSTDNAMELGTMAX
,
NLONGNAMELGTMAX
,
NUNITLGTMAX
,
NCOMMENTLGTMAX
use
mode_tools
,
only
:
Quicksort
...
...
@@ -4159,9 +4159,9 @@ subroutine Ini_budget_groups( tpbudgets, kbudim1, kbudim2, kbudim3 )
character
(
len
=
NMNHNAMELGTMAX
)
::
ymnhname
character
(
len
=
NSTDNAMELGTMAX
)
::
ystdname
character
(
len
=
32
)
::
ylongname
character
(
len
=
40
)
::
yunits
character
(
len
=
100
)
::
ycomment
character
(
len
=
NLONGNAMELGTMAX
)
::
ylongname
character
(
len
=
NUNITLGTMAX
)
::
yunits
character
(
len
=
NCOMMENTLGTMAX
)
::
ycomment
integer
::
ji
,
jj
,
jk
integer
::
isources
! Number of source terms in a budget
integer
::
inbgroups
! Number of budget groups
...
...
This diff is collapsed.
Click to expand it.
src/MNH/modd_parameters.f90
+
12
−
9
View file @
0e0491f9
!MNH_LIC Copyright 1994-202
0
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 1994-202
1
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.
...
...
@@ -39,10 +39,11 @@
!! Modification 17/05/04 (P.Jabouille) add JPOUTMAX
!! J.Escobar : 15/09/2015 : WENO5 & JPHEXT <> 1
!! B.VIE 2016 LIMA
! P. Wautelet: 05/2016-04/2018: new data structures and calls for I/O
! Q. Rodier 29/03/2019: increase maximum number of outputs to 999
! P. Wautelet 17/01/2020: add NBUNAMELGTMAX and NCOMMENTLGTMAX parameters
! P. Wautelet 13/03/2020: remove JPBUMAX and JPBUPROMAX
! P. Wautelet: 05/2016-04/2018: new data structures and calls for I/O
! Q. Rodier 29/03/2019: increase maximum number of outputs to 999
! P. Wautelet 17/01/2020: add NBUNAMELGTMAX and NCOMMENTLGTMAX parameters
! P. Wautelet 13/03/2020: remove JPBUMAX and JPBUPROMAX
! P. Wautelet 24/09/2021: add NLONGNAMELGTMAX and NUNITLGTMAX parameters
!-------------------------------------------------------------------------------
!
!* 0. DECLARATIONS
...
...
@@ -78,10 +79,12 @@ INTEGER, PARAMETER :: JPDUMMY = 20 ! Size of dummy array
INTEGER
,
PARAMETER
::
JPOUTMAX
=
999
! Maximum allowed number of OUTput files
INTEGER
,
PARAMETER
::
JPOUTVARMAX
=
192
! Maximum allowed number of variables in an output file
!
INTEGER
,
PARAMETER
::
NBUNAMELGTMAX
=
32
! Maximum length of a budget name
INTEGER
,
PARAMETER
::
NCOMMENTLGTMAX
=
100
! Maximum length of a comment
INTEGER
,
PARAMETER
::
NMNHNAMELGTMAX
=
32
! Maximum length of a MNH variable name
INTEGER
,
PARAMETER
::
NSTDNAMELGTMAX
=
64
! Maximum length of the standard name of a variable (CF convention)
INTEGER
,
PARAMETER
::
NBUNAMELGTMAX
=
32
! Maximum length of a budget name
INTEGER
,
PARAMETER
::
NCOMMENTLGTMAX
=
100
! Maximum length of a comment
INTEGER
,
PARAMETER
::
NMNHNAMELGTMAX
=
32
! Maximum length of a MNH variable name
INTEGER
,
PARAMETER
::
NSTDNAMELGTMAX
=
64
! Maximum length of the standard name of a variable (CF convention)
INTEGER
,
PARAMETER
::
NLONGNAMELGTMAX
=
32
! Maximum length of the long name of a variable (CF convention)
INTEGER
,
PARAMETER
::
NUNITLGTMAX
=
40
! Maximum length of the canonical units of a variable (CF convention)
!
INTEGER
,
PARAMETER
::
NDIRNAMELGTMAX
=
512
! Maximum length of a directory name
INTEGER
,
PARAMETER
::
NFILENAMELGTMAX
=
32
! Maximum length of a file name (must be at least NFILENAMELGTMAXLFI)
...
...
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