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
4a84802a
Commit
4a84802a
authored
5 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 17/01/2020: budgets: add new budget data types
parent
ba4ec0ed
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/MNH/modd_budget.f90
+42
-2
42 additions, 2 deletions
src/MNH/modd_budget.f90
with
42 additions
and
2 deletions
src/MNH/modd_budget.f90
+
42
−
2
View file @
4a84802a
!MNH_LIC Copyright 1995-20
19
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 1995-20
20
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.
...
...
@@ -45,11 +45,12 @@
! P. Wautelet 05/2016-04/2018: new data structures and calls for I/O
! P. Wautelet 19/07/2019: parameters to identify budget number
! P. Wautelet 15/11/2019: remove unused CBURECORD variable
! P. Wautelet 17/01/2020: add new budget data types
!-------------------------------------------------------------------------------
!
!* 0. DECLARATIONS
! ------------
USE
MODD_PARAMETERS
,
ONLY
:
JPBUMAX
,
JPBUPROMAX
,
N
MNHNAME
LGTMAX
USE
MODD_PARAMETERS
,
ONLY
:
JPBUMAX
,
JPBUPROMAX
,
N
BUNAMELGTMAX
,
NCOMMENT
LGTMAX
implicit
none
...
...
@@ -70,6 +71,45 @@ integer, parameter :: NBUDGET_RG = 11 ! Reference number for budget of RhoJrg a
integer
,
parameter
::
NBUDGET_RH
=
12
! Reference number for budget of RhoJrh and/or LES budgets with rh
integer
,
parameter
::
NBUDGET_SV1
=
13
! Reference number for 1st budget of RhoJsv and/or LES budgets with sv
integer
::
nbudgets
! Number of budget categories
type
tbudgetdata
character
(
len
=
NBUNAMELGTMAX
)
::
cname
=
''
character
(
len
=
NCOMMENTLGTMAX
)
::
ccomment
=
''
integer
::
ngroups
=
0
!Number of groups of source terms to store
integer
::
nsources
=
0
!Number of source terms
integer
::
nsourcesmax
=
0
!Maximum number of source terms
integer
::
ntmpstoresource
=
0
!Reference of the source term using the xtmpstore array
logical
::
lenabled
=
.false.
! True if corresponding budget flag is set to true
real
,
dimension
(:,:,:),
allocatable
::
xtmpstore
! Array to store temporary data
! (to allow to store the difference between 2 places)
type
(
tbusourcedata
),
dimension
(:),
allocatable
::
tsources
! Full list of source terms (used or not)
type
(
tbugroupdata
),
dimension
(:),
allocatable
::
tgroups
! Full list of groups of source terms (to be written)
end
type
tbudgetdata
type
tbusourcedata
character
(
len
=
NBUNAMELGTMAX
)
::
cname
=
''
integer
::
ngroup
=
0
! Number of the source term group in which storing the source term
! (0: no store, 1: individual store, >1: number of the group)
logical
::
lenabled
=
.false.
logical
::
ldonotinit
=
.false.
! if true, does not need a call to Budget_store_init
! It may be true only if the source term is in a group not containing other sources
logical
::
loverwrite
=
.false.
! if true, source term values will overwrite the previuos ones
! It may be true only if the source term is in a group not containing other sources
end
type
tbusourcedata
type
tbugroupdata
character
(
len
=
NBUNAMELGTMAX
)
::
cname
=
''
integer
::
nsources
=
0
! Number of source terms composing this group
integer
,
dimension
(:),
allocatable
::
nsourcelist
! List of the source terms composing this group
real
,
dimension
(:,:,:),
allocatable
::
xdata
! Array to store the budget data
end
type
tbugroupdata
type
(
tbudgetdata
),
dimension
(:),
allocatable
,
save
::
tbudgets
! General variables
LOGICAL
,
SAVE
::
LBU_ENABLE
!
...
...
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