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
86d64790
Commit
86d64790
authored
4 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 12/10/2020: IO: Write_les_n: remove HLES_AVG dummy argument and group all 4 calls
parent
29ccb591
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/modeln.f90
+3
-5
3 additions, 5 deletions
src/MNH/modeln.f90
src/MNH/write_lesn.f90
+36
-32
36 additions, 32 deletions
src/MNH/write_lesn.f90
with
39 additions
and
37 deletions
src/MNH/modeln.f90
+
3
−
5
View file @
86d64790
...
...
@@ -267,6 +267,7 @@ END MODULE MODI_MODEL_n
! P. Wautelet 13/09/2019: budget: simplify and modernize date/time management
! J. Escobar 27/09/2019: add missing report timing of RESOLVED_ELEC
! P. Wautelet 02-03/2020: use the new data structures and subroutines for budgets
! P. Wautelet 12/10/2020: Write_les_n: remove HLES_AVG dummy argument and group all 4 calls
!!-------------------------------------------------------------------------------
!
!* 0. DECLARATIONS
...
...
@@ -367,6 +368,7 @@ USE MODE_MNH_TIMING
USE
MODE_MODELN_HANDLER
USE
MODE_MPPDB
USE
MODE_ONE_WAY_n
use
mode_write_les_n
,
only
:
Write_les_n
use
mode_write_lfifmn_fordiachro_n
,
only
:
WRITE_LFIFMN_FORDIACHRO_n
!
USE
MODI_ADVECTION_METSV
...
...
@@ -427,7 +429,6 @@ USE MODI_VISCOSITY
USE
MODI_WRITE_AIRCRAFT_BALLOON
USE
MODI_WRITE_DESFM_n
USE
MODI_WRITE_DIAG_SURF_ATM_N
USE
MODI_WRITE_LES_n
USE
MODI_WRITE_LFIFM_n
USE
MODI_WRITE_PROFILER_n
USE
MODI_WRITE_SERIES_n
...
...
@@ -2088,10 +2089,7 @@ IF (OEXIT) THEN
CALL
WRITE_AIRCRAFT_BALLOON
(
TDIAFILE
)
CALL
WRITE_STATION_n
(
TDIAFILE
)
CALL
WRITE_PROFILER_n
(
TDIAFILE
)
CALL
WRITE_LES_n
(
TDIAFILE
,
' '
)
CALL
WRITE_LES_n
(
TDIAFILE
,
'A'
)
CALL
WRITE_LES_n
(
TDIAFILE
,
'E'
)
CALL
WRITE_LES_n
(
TDIAFILE
,
'H'
)
call
Write_les_n
(
tdiafile
)
CALL
MENU_DIACHRO
(
TDIAFILE
,
'END'
)
CALL
IO_File_close
(
TDIAFILE
)
END
IF
...
...
This diff is collapsed.
Click to expand it.
src/MNH/write_lesn.f90
+
36
−
32
View file @
86d64790
!MNH_LIC Copyright 2000-20
19
CNRS, Meteo-France and Universite Paul Sabatier
!MNH_LIC Copyright 2000-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.
!-----------------------------------------------------------------
!######################
MODULE
MODI_WRITE_LES
_n
module
mode_write_les
_n
!######################
!
INTERFACE
!
SUBROUTINE
WRITE_LES_n
(
TPDIAFILE
,
HLES_AVG
)
!
USE
MODD_IO
,
ONLY
:
TFILEDATA
!
TYPE
(
TFILEDATA
),
INTENT
(
IN
)
::
TPDIAFILE
! file to write
CHARACTER
(
LEN
=
1
),
INTENT
(
IN
)
::
HLES_AVG
! flag to perform the averages
! ! or normalizations
END
SUBROUTINE
WRITE_LES_n
!
END
INTERFACE
!
END
MODULE
MODI_WRITE_LES_n
! ######################
SUBROUTINE
WRITE_LES_n
(
TPDIAFILE
,
HLES_AVG
)
! ######################
implicit
none
contains
!###################################
subroutine
Write_les_n
(
tpdiafile
)
!###################################
!
!
!!**** *WRITE_LES_n* writes the LES final diagnostics for model _n
!!
!!**** *WRITE_LES_n* writes the LES final diagnostics for model _n
!!
!!
!! PURPOSE
!! -------
...
...
@@ -58,6 +47,7 @@ END MODULE MODI_WRITE_LES_n
! P. Wautelet 05/2016-04/2018: new data structures and calls for I/O
! C. Lac 02/2019: add rain fraction as a LES diagnostic
! P. Wautelet 13/09/2019: budget: simplify and modernize date/time management
! P. Wautelet 12/10/2020: remove HLES_AVG dummy argument and group all 4 calls
! --------------------------------------------------------------------------
!
!* 0. DECLARATIONS
...
...
@@ -92,8 +82,6 @@ IMPLICIT NONE
!* 0.1 declarations of arguments
!
TYPE
(
TFILEDATA
),
INTENT
(
IN
)
::
TPDIAFILE
! file to write
CHARACTER
(
LEN
=
1
),
INTENT
(
IN
)
::
HLES_AVG
! flag to perform the averages
! ! or normalizations
!
!
!* 0.2 declaration of local variables
...
...
@@ -111,18 +99,16 @@ REAL, DIMENSION(:,:,:), ALLOCATABLE :: ZAVG_PTS_ll
REAL
,
DIMENSION
(:,:,:),
ALLOCATABLE
::
ZUND_PTS_ll
REAL
::
ZCART_PTS_ll
INTEGER
::
IMI
! Current model inde
CHARACTER
(
LEN
=
1
)
::
HLES_AVG
character
(
len
=
1
),
DIMENSION
(
4
)
::
yles_avg
integer
::
javg
!
!
!-------------------------------------------------------------------------------
!
IF
(
.NOT.
LLES
)
RETURN
!
IF
(
HLES_AVG
==
'A'
&
.AND.
(
XLES_TEMP_MEAN_START
==
XUNDEF
.OR.
XLES_TEMP_MEAN_END
==
XUNDEF
))
RETURN
IF
(
HLES_AVG
==
'E'
.AND.
CLES_NORM_TYPE
==
'NONE'
)
RETURN
IF
(
HLES_AVG
==
'H'
.AND.
(
CLES_NORM_TYPE
==
'NONE'
&
.OR.
XLES_TEMP_MEAN_START
/
=
XUNDEF
.OR.
XLES_TEMP_MEAN_END
/
=
XUNDEF
))
RETURN
!
!* 1. Initializations
! ---------------
!
...
...
@@ -262,6 +248,21 @@ IF (LLES_CS_MASK) THEN
IMASK
=
IMASK
+1
YSUBTITLE
(
IMASK
)
=
" (cs3)"
END
IF
yles_avg
(
1
)
=
' '
yles_avg
(
2
)
=
'A'
yles_avg
(
3
)
=
'E'
yles_avg
(
4
)
=
'H'
AVG
:
do
javg
=
1
,
4
hles_avg
=
yles_avg
(
javg
)
IF
(
HLES_AVG
==
'A'
&
.AND.
(
XLES_TEMP_MEAN_START
==
XUNDEF
.OR.
XLES_TEMP_MEAN_END
==
XUNDEF
))
cycle
IF
(
HLES_AVG
==
'E'
.AND.
CLES_NORM_TYPE
==
'NONE'
)
cycle
IF
(
HLES_AVG
==
'H'
.AND.
(
CLES_NORM_TYPE
==
'NONE'
&
.OR.
XLES_TEMP_MEAN_START
==
XUNDEF
.OR.
XLES_TEMP_MEAN_END
==
XUNDEF
))
cycle
!
!* 2.0 averaging diagnostics
! ---------------------
...
...
@@ -1479,6 +1480,7 @@ END IF
!
IF
(
HLES_AVG
==
' '
)
CALL
LES_SPEC_n
(
TPDIAFILE
)
!
end
do
AVG
!-------------------------------------------------------------------------------
!
!* 7. deallocations
...
...
@@ -1495,5 +1497,7 @@ IF (CLES_NORM_TYPE/='NONE' ) THEN
DEALLOCATE
(
XLES_NORM_SV
)
DEALLOCATE
(
XLES_NORM_P
)
END
IF
!
END
SUBROUTINE
WRITE_LES_n
end
subroutine
Write_les_n
end
module
mode_write_les_n
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