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
c65e70c4
Commit
c65e70c4
authored
4 years ago
by
RODIER Quentin
Browse files
Options
Downloads
Patches
Plain Diff
Quentin 26/03/2021: adapt TIME and DATE type and public mode of mode_therm
parent
22f1749b
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/LIB/RAD/ecrad-1.0.1_mnh/ifs/cos_sza.F90
+1
-1
1 addition, 1 deletion
src/LIB/RAD/ecrad-1.0.1_mnh/ifs/cos_sza.F90
src/LIB/RAD/ecrad-1.0.1_mnh/ifs/radiation_scheme.F90
+4
-4
4 additions, 4 deletions
src/LIB/RAD/ecrad-1.0.1_mnh/ifs/radiation_scheme.F90
with
5 additions
and
5 deletions
src/LIB/RAD/ecrad-1.0.1_mnh/ifs/cos_sza.F90
+
1
−
1
View file @
c65e70c4
...
@@ -135,7 +135,7 @@ DO JCOL = KSTART,KEND
...
@@ -135,7 +135,7 @@ DO JCOL = KSTART,KEND
ENDDO
ENDDO
! Computation of solar hour angle from sunposn
! Computation of solar hour angle from sunposn
ZTIME
=
TDTRAD_FULL
%
TIME
+
0.5
*
XDTRAD
ZTIME
=
TDTRAD_FULL
%
X
TIME
+
0.5
*
XDTRAD
ZUT
=
MOD
(
24.0
+
MOD
(
ZTIME
/
3600.
,
24.0
),
24.0
)
ZUT
=
MOD
(
24.0
+
MOD
(
ZTIME
/
3600.
,
24.0
),
24.0
)
ZTUT
=
ZUT
-
XTSIDER
ZTUT
=
ZUT
-
XTSIDER
ZSOLANG
=
(
ZTUT
-12.0
)
*
15.0
*
(
RPI
/
180.
)
! hour angle in radians
ZSOLANG
=
(
ZTUT
-12.0
)
*
15.0
*
(
RPI
/
180.
)
! hour angle in radians
...
...
This diff is collapsed.
Click to expand it.
src/LIB/RAD/ecrad-1.0.1_mnh/ifs/radiation_scheme.F90
+
4
−
4
View file @
c65e70c4
...
@@ -79,7 +79,7 @@ USE YOMHOOK , ONLY : LHOOK, DR_HOOK
...
@@ -79,7 +79,7 @@ USE YOMHOOK , ONLY : LHOOK, DR_HOOK
USE
MODD_PARAM_ECRAD_n
,
ONLY
:
NAERMACC
,
NDECOLAT
,
XCLOUD_FRAC_STD
,
&
! replace YRERAD to get attributes
USE
MODD_PARAM_ECRAD_n
,
ONLY
:
NAERMACC
,
NDECOLAT
,
XCLOUD_FRAC_STD
,
&
! replace YRERAD to get attributes
&
LAPPROXLWUPDATE
,
LAPPROXSWUPDATE
&
LAPPROXLWUPDATE
,
LAPPROXSWUPDATE
USE
MODD_RADIATIONS_n
,
ONLY
:
NSWB_MNH
,
NSWB_OLD
USE
MODD_RADIATIONS_n
,
ONLY
:
NSWB_MNH
,
NSWB_OLD
USE
MODE_THERMO
!
, ONLY QSAT
W_2D
USE
MODE_THERMO
,
ONLY
:
QSAT
USE
MODD_DYN_n
,
ONLY
:
XTSTEP
,
NSTOP
USE
MODD_DYN_n
,
ONLY
:
XTSTEP
,
NSTOP
USE
MODD_TIME
,
ONLY
:
TDTEXP
USE
MODD_TIME
,
ONLY
:
TDTEXP
USE
MODD_TIME_n
,
ONLY
:
TDTMOD
,
TDTCUR
USE
MODD_TIME_n
,
ONLY
:
TDTMOD
,
TDTCUR
...
@@ -336,7 +336,7 @@ thermodynamics%temperature_hl(KIDIA:KFDIA,KLEV+1) &
...
@@ -336,7 +336,7 @@ thermodynamics%temperature_hl(KIDIA:KFDIA,KLEV+1) &
! & PPRESSURE, PTEMPERATURE, thermodynamics%h2o_sat_liq, 2)
! & PPRESSURE, PTEMPERATURE, thermodynamics%h2o_sat_liq, 2)
!MNH
!MNH
thermodynamics
%
h2o_sat_liq
(:,:)
=
QSAT
W_2D
(
REAL
(
PPRESSURE
),
REAL
(
PTEMPERATURE
))
thermodynamics
%
h2o_sat_liq
(:,:)
=
QSAT
(
REAL
(
PPRESSURE
),
REAL
(
PTEMPERATURE
))
thermodynamics
%
h2o_sat_liq
(:,:)
=
thermodynamics
%
h2o_sat_liq
(:,:)
&
thermodynamics
%
h2o_sat_liq
(:,:)
=
thermodynamics
%
h2o_sat_liq
(:,:)
&
&
/
(
1.
+
thermodynamics
%
h2o_sat_liq
(:,:))
! mixing ratio => spec humid
&
/
(
1.
+
thermodynamics
%
h2o_sat_liq
(:,:))
! mixing ratio => spec humid
!MNH
!MNH
...
@@ -361,8 +361,8 @@ single_level%lw_emissivity(KIDIA:KFDIA,2) = PEMIS_WINDOW(KIDIA:KFDIA)
...
@@ -361,8 +361,8 @@ single_level%lw_emissivity(KIDIA:KFDIA,2) = PEMIS_WINDOW(KIDIA:KFDIA)
! Create the relevant seed from date and time get the starting day
! Create the relevant seed from date and time get the starting day
! and number of minutes since start
! and number of minutes since start
! IDAY = NDD(NINDAT) ! NINDAT is AAAAMMDD initial date NDD extract DD as INTEGER
! IDAY = NDD(NINDAT) ! NINDAT is AAAAMMDD initial date NDD extract DD as INTEGER
IDAY
=
TDTEXP
%
T
DATE
%
DAY
! MNH
IDAY
=
TDTEXP
%
DATE
%
N
DAY
! MNH
ITIM
=
NINT
((
TDTMOD
%
time
-
TDTCUR
%
time
)
/
60.0_JPRB
)
! YRRIP contains timestep infos ; number of minutes since beginning
ITIM
=
NINT
((
TDTMOD
%
x
time
-
TDTCUR
%
x
time
)
/
60.0_JPRB
)
! YRRIP contains timestep infos ; number of minutes since beginning
DO
JLON
=
KIDIA
,
KFDIA
DO
JLON
=
KIDIA
,
KFDIA
! This method gives a unique value for roughly every 1-km square
! This method gives a unique value for roughly every 1-km square
! on the globe and every minute. ASIN(PGEMU)*60 gives rough
! on the globe and every minute. ASIN(PGEMU)*60 gives rough
...
...
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