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
1919b61d
Commit
1919b61d
authored
3 years ago
by
RODIER Quentin
Browse files
Options
Downloads
Patches
Plain Diff
Quentin 08/11/2021: Merge AROME->COMMON tm06.f90 (minor)
parent
8e7e9ad0
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/common/turb/tm06.F90
+4
-0
4 additions, 0 deletions
src/common/turb/tm06.F90
src/mesonh/turb/tm06.f90
+0
-165
0 additions, 165 deletions
src/mesonh/turb/tm06.f90
with
4 additions
and
165 deletions
src/
arome
/turb/tm06.F90
→
src/
common
/turb/tm06.F90
+
4
−
0
View file @
1919b61d
!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.
! ######spl
! ######spl
SUBROUTINE
TM06
(
KKA
,
KKU
,
KKL
,
PTHVREF
,
PBL_DEPTH
,
PZZ
,
PSFTH
,
PMWTH
,
PMTH2
)
SUBROUTINE
TM06
(
KKA
,
KKU
,
KKL
,
PTHVREF
,
PBL_DEPTH
,
PZZ
,
PSFTH
,
PMWTH
,
PMTH2
)
USE
PARKIND1
,
ONLY
:
JPRB
USE
PARKIND1
,
ONLY
:
JPRB
...
...
This diff is collapsed.
Click to expand it.
src/mesonh/turb/tm06.f90
deleted
100644 → 0
+
0
−
165
View file @
8e7e9ad0
!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.
!-----------------------------------------------------------------
!--------------- special set of characters for RCS information
!-----------------------------------------------------------------
! $Source$ $Revision$
! MASDEV4_7 newsrc 2006/05/18 13:07:25
!-----------------------------------------------------------------
! ################
MODULE
MODI_TM06
! ################
!
INTERFACE
!
SUBROUTINE
TM06
(
KKA
,
KKU
,
KKL
,
PTHVREF
,
PBL_DEPTH
,
PZZ
,
PSFTH
,
PMWTH
,
PMTH2
)
!
INTEGER
,
INTENT
(
IN
)
::
KKA
!near ground array index
INTEGER
,
INTENT
(
IN
)
::
KKU
!uppest atmosphere array index
INTEGER
,
INTENT
(
IN
)
::
KKL
!vert. levels type 1=MNH -1=ARO
REAL
,
DIMENSION
(:,:,:),
INTENT
(
IN
)
::
PTHVREF
! reference potential temperature
REAL
,
DIMENSION
(:,:),
INTENT
(
IN
)
::
PBL_DEPTH
! boundary layer height
REAL
,
DIMENSION
(:,:,:),
INTENT
(
IN
)
::
PZZ
! altitude of flux levels
REAL
,
DIMENSION
(:,:),
INTENT
(
IN
)
::
PSFTH
! surface heat flux
REAL
,
DIMENSION
(:,:,:),
INTENT
(
OUT
)::
PMWTH
! w'2th'
REAL
,
DIMENSION
(:,:,:),
INTENT
(
OUT
)::
PMTH2
! w'th'2
!
!-------------------------------------------------------------------------------
!
END
SUBROUTINE
TM06
!
END
INTERFACE
!
END
MODULE
MODI_TM06
!
! #################################################################
SUBROUTINE
TM06
(
KKA
,
KKU
,
KKL
,
PTHVREF
,
PBL_DEPTH
,
PZZ
,
PSFTH
,
PMWTH
,
PMTH2
)
! #################################################################
!
!
!!**** *TM06* - computes the Third Order Moments
!!
!! PURPOSE
!! -------
!
!!** METHOD
!! ------
!!
!! TOMs are deduced from convective normalized TOMs according to Tomas and
!! Masson 2006
!!
!! EXTERNAL
!! --------
!!
!! IMPLICIT ARGUMENTS
!! ------------------
!!
!!
!! REFERENCE
!! ---------
!!
!! AUTHOR
!! ------
!! V. MAsson and S. Tomas * Meteo-France *
!!
!! MODIFICATIONS
!! -------------
!! Original sept. 2005
!!
!! --------------------------------------------------------------------------
!
!* 0. DECLARATIONS
! ------------
!
USE
MODD_PARAMETERS
,
ONLY
:
XUNDEF
USE
MODD_CST
,
ONLY
:
XG
USE
MODD_PARAMETERS
,
ONLY
:
JPVEXT_TURB
!
!
IMPLICIT
NONE
!
!
!* 0.1 declarations of arguments
!
INTEGER
,
INTENT
(
IN
)
::
KKA
!near ground array index
INTEGER
,
INTENT
(
IN
)
::
KKU
!uppest atmosphere array index
INTEGER
,
INTENT
(
IN
)
::
KKL
!vert. levels type 1=MNH -1=ARO
REAL
,
DIMENSION
(:,:,:),
INTENT
(
IN
)
::
PTHVREF
! reference potential temperature
REAL
,
DIMENSION
(:,:),
INTENT
(
IN
)
::
PBL_DEPTH
! boundary layer height
REAL
,
DIMENSION
(:,:,:),
INTENT
(
IN
)
::
PZZ
! altitude of flux levels
REAL
,
DIMENSION
(:,:),
INTENT
(
IN
)
::
PSFTH
! surface heat flux
REAL
,
DIMENSION
(:,:,:),
INTENT
(
OUT
)::
PMWTH
! w'2th'
REAL
,
DIMENSION
(:,:,:),
INTENT
(
OUT
)::
PMTH2
! w'th'2
!
!-------------------------------------------------------------------------------
!
! 0.2 declaration of local variables
!
REAL
,
DIMENSION
(
SIZE
(
PZZ
,
1
),
SIZE
(
PZZ
,
2
),
SIZE
(
PZZ
,
3
))::
ZZ_O_H
! normalized height z/h (where h=BL height)
REAL
,
DIMENSION
(
SIZE
(
PZZ
,
1
),
SIZE
(
PZZ
,
2
))
::
ZWSTAR
! normalized convective velocity w*
REAL
,
DIMENSION
(
SIZE
(
PZZ
,
1
),
SIZE
(
PZZ
,
2
))
::
ZTSTAR
! normalized temperature velocity w*
!
INTEGER
::
JK
! loop counter
INTEGER
::
IKT
! vertical size
INTEGER
::
IKTB
,
IKTE
,
IKB
,
IKE
! vertical levels
!----------------------------------------------------------------------------
!
IKT
=
SIZE
(
PZZ
,
3
)
IKTB
=
1
+
JPVEXT_TURB
IKTE
=
IKT
-
JPVEXT_TURB
IKB
=
KKA
+
JPVEXT_TURB
*
KKL
IKE
=
KKU
-
JPVEXT_TURB
*
KKL
!
!
!* w* and T*
!
WHERE
(
PSFTH
>
0.
)
ZWSTAR
=
((
XG
/
PTHVREF
(:,:,
IKB
))
*
PSFTH
*
PBL_DEPTH
)
**
(
1.
/
3.
)
ZTSTAR
=
PSFTH
/
ZWSTAR
ELSEWHERE
ZWSTAR
=
0.
ZTSTAR
=
0.
END
WHERE
!
!
!* normalized height
!
ZZ_O_H
=
XUNDEF
DO
JK
=
1
,
IKT
WHERE
(
PBL_DEPTH
/
=
XUNDEF
)
ZZ_O_H
(:,:,
JK
)
=
(
PZZ
(:,:,
JK
)
-
PZZ
(:,:,
IKB
))
/
PBL_DEPTH
(:,:)
END
WHERE
END
DO
!
!* w'th'2
!
PMTH2
=
0.
WHERE
(
ZZ_O_H
<
0.95
.AND.
ZZ_O_H
/
=
XUNDEF
)
PMTH2
(:,:,:)
=
4.
*
(
MAX
(
ZZ_O_H
,
0.
))
**
0.4
*
(
ZZ_O_H
-0.95
)
**
2
END
WHERE
DO
JK
=
IKTB
+1
,
IKTE
-1
PMTH2
(:,:,
JK
)
=
PMTH2
(:,:,
JK
)
*
ZTSTAR
(:,:)
**
2
*
ZWSTAR
(:,:)
END
DO
PMTH2
(:,:,
IKE
)
=
PMTH2
(:,:,
IKE
)
*
ZTSTAR
(:,:)
**
2
*
ZWSTAR
(:,:)
PMTH2
(:,:,
KKU
)
=
PMTH2
(:,:,
KKU
)
*
ZTSTAR
(:,:)
**
2
*
ZWSTAR
(:,:)
!
!
!* w'2th'
!
PMWTH
=
0.
WHERE
(
ZZ_O_H
<
0.9
.AND.
ZZ_O_H
/
=
XUNDEF
)
PMWTH
(:,:,:)
=
MAX
(
-7.9
*
(
ABS
(
ZZ_O_H
-0.35
))
**
2.9
*
(
ABS
(
ZZ_O_H
-1.
))
**
0.58
+
0.37
,
0.
)
END
WHERE
DO
JK
=
IKTB
+1
,
IKTE
-1
PMWTH
(:,:,
JK
)
=
PMWTH
(:,:,
JK
)
*
ZWSTAR
(:,:)
**
2
*
ZTSTAR
(:,:)
END
DO
PMWTH
(:,:,
IKE
)
=
PMWTH
(:,:,
IKE
)
*
ZWSTAR
(:,:)
**
2
*
ZTSTAR
(:,:)
PMWTH
(:,:,
KKU
)
=
PMWTH
(:,:,
KKU
)
*
ZWSTAR
(:,:)
**
2
*
ZTSTAR
(:,:)
!
!----------------------------------------------------------------------------
END
SUBROUTINE
TM06
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