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
528cc292
Commit
528cc292
authored
5 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 14/10/2019: write_budget: complete restructuration and deduplication of code
parent
fcd60843
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/MNH/endstep_budget.f90
+6
-8
6 additions, 8 deletions
src/MNH/endstep_budget.f90
src/MNH/modd_budget.f90
+1
-0
1 addition, 0 deletions
src/MNH/modd_budget.f90
src/MNH/modeln.f90
+1
-1
1 addition, 1 deletion
src/MNH/modeln.f90
src/MNH/write_budget.f90
+556
-1445
556 additions, 1445 deletions
src/MNH/write_budget.f90
with
564 additions
and
1454 deletions
src/MNH/endstep_budget.f90
+
6
−
8
View file @
528cc292
...
...
@@ -10,7 +10,7 @@
INTERFACE
!
SUBROUTINE
ENDSTEP_BUDGET
(
TPDIAFILE
,
KTCOUNT
,
&
TPDTCUR
,
TPDTMOD
,
PTSTEP
,
KSV
)
TPDTCUR
,
PTSTEP
,
KSV
)
!
USE
MODD_IO
,
ONLY
:
TFILEDATA
USE
MODD_TYPE_DATE
...
...
@@ -18,7 +18,6 @@ USE MODD_TYPE_DATE
TYPE
(
TFILEDATA
),
INTENT
(
IN
)
::
TPDIAFILE
! file to write
INTEGER
,
INTENT
(
IN
)
::
KTCOUNT
! temporal loop counter
TYPE
(
DATE_TIME
),
INTENT
(
IN
)
::
TPDTCUR
! Current date and time
TYPE
(
DATE_TIME
),
INTENT
(
IN
)
::
TPDTMOD
! Creation date and time
REAL
,
INTENT
(
IN
)
::
PTSTEP
! time step
INTEGER
,
INTENT
(
IN
)
::
KSV
! Number of Scalar Variables
!
...
...
@@ -30,7 +29,7 @@ END MODULE MODI_ENDSTEP_BUDGET
!
! ####################################################
SUBROUTINE
ENDSTEP_BUDGET
(
TPDIAFILE
,
KTCOUNT
,
&
TPDTCUR
,
TPDTMOD
,
PTSTEP
,
KSV
)
TPDTCUR
,
PTSTEP
,
KSV
)
! ####################################################
!
!!**** *ENDSTEP_BUDGET* - routine to call the routine write_budget
...
...
@@ -105,7 +104,7 @@ USE MODD_IO, ONLY: TFILEDATA
USE
MODD_TIME
USE
MODD_BUDGET
!
USE
MODI_WRITE_BUDGET
use
mode_write_budget
,
only
:
Write_budget
!
IMPLICIT
NONE
!
...
...
@@ -115,7 +114,6 @@ IMPLICIT NONE
TYPE
(
TFILEDATA
),
INTENT
(
IN
)
::
TPDIAFILE
! file to write
INTEGER
,
INTENT
(
IN
)
::
KTCOUNT
! temporal loop counter
TYPE
(
DATE_TIME
),
INTENT
(
IN
)
::
TPDTCUR
! Current date and time
TYPE
(
DATE_TIME
),
INTENT
(
IN
)
::
TPDTMOD
! Creation date and time
REAL
,
INTENT
(
IN
)
::
PTSTEP
! time step
INTEGER
,
INTENT
(
IN
)
::
KSV
! Number of Scalar Variables
!
...
...
@@ -131,8 +129,8 @@ SELECT CASE(CBUTYPE)
!
!* 1.1 storage of the budget fields
!
IF
(
MODULO
(
KTCOUNT
,
NBUSTEP
*
NBUWRNB
)
==
0
)
THEN
CALL
WRITE_BUDGET
(
TPDIAFILE
,
TPDTCUR
,
TPDTMOD
,
PTSTEP
,
KSV
)
IF
(
MODULO
(
KTCOUNT
,
NBUSTEP
*
NBUWRNB
)
==
0
)
THEN
call
Write_budget
(
tpdiafile
,
tpdtcur
,
ptstep
,
ksv
)
!
!* 1.2 resetting the budget arrays to 0.
!
...
...
@@ -168,7 +166,7 @@ SELECT CASE(CBUTYPE)
!
!* 2.1 storage of the budget fields
!
CALL
WRITE_BUDGET
(
TPDIAFILE
,
TPDTCUR
,
TPDTMOD
,
PTSTEP
,
KSV
)
call
Write_budget
(
tpdiafile
,
tpdtcur
,
ptstep
,
ksv
)
!
!* 2.2 reset the budget fields to 0.
!
...
...
This diff is collapsed.
Click to expand it.
src/MNH/modd_budget.f90
+
1
−
0
View file @
528cc292
...
...
@@ -54,6 +54,7 @@ implicit none
public
integer
,
parameter
::
NBUDGET_RHO
=
0
! Reference number for budget of RhoJ
integer
,
parameter
::
NBUDGET_U
=
1
! Reference number for budget of RhoJu and/or LES budgets with u
integer
,
parameter
::
NBUDGET_V
=
2
! Reference number for budget of RhoJv and/or LES budgets with u
integer
,
parameter
::
NBUDGET_W
=
3
! Reference number for budget of RhoJw and/or LES budgets with u
...
...
This diff is collapsed.
Click to expand it.
src/MNH/modeln.f90
+
1
−
1
View file @
528cc292
...
...
@@ -2024,7 +2024,7 @@ ZTIME1 = ZTIME2
!
IF
(
.NOT.
LIO_NO_WRITE
)
THEN
IF
(
NBUMOD
==
IMI
.AND.
CBUTYPE
/
=
'NONE'
)
THEN
CALL
ENDSTEP_BUDGET
(
TDIAFILE
,
KTCOUNT
,
TDTCUR
,
TDTMOD
,
XTSTEP
,
NSV
)
CALL
ENDSTEP_BUDGET
(
TDIAFILE
,
KTCOUNT
,
TDTCUR
,
XTSTEP
,
NSV
)
END
IF
END
IF
!
...
...
This diff is collapsed.
Click to expand it.
src/MNH/write_budget.f90
+
556
−
1445
View file @
528cc292
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