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
96b4f9ec
Commit
96b4f9ec
authored
6 years ago
by
Juan Escobar
Browse files
Options
Downloads
Patches
Plain Diff
Juan 20/07/2018:radiations.f90, for real*4 compilation, convert with REAL(X) argument to SUM_DD...
parent
09791a2d
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MNH/radiations.f90
+19
-18
19 additions, 18 deletions
src/MNH/radiations.f90
with
19 additions
and
18 deletions
src/MNH/radiations.f90
+
19
−
18
View file @
96b4f9ec
...
...
@@ -116,6 +116,7 @@ CONTAINS
!! Q.Libois 02/2018 : ECRAD
!! Philippe Wautelet: 05/2016-04/2018: new data structures and calls for I/O
!! J.Escobar 28/06/2018 : Reproductible parallelisation of CLOUD_ONLY case
!! J.Escobar 20/07/2018 : for real*4 compilation, convert with REAL(X) argument to SUM_DD...
!-------------------------------------------------------------------------------
!
!* 0. DECLARATIONS
...
...
@@ -1212,35 +1213,35 @@ IF(OCLOUD_ONLY .OR. OCLEAR_SKY) THEN
IF
(
ZCLEAR_COL_ll
/
=
0.0
)
THEN
! at least one clear-sky column exists -> average profiles on clear columns
ZT_CLEAR
(:)
=
SUM_DD_R2_R1_ll
(
ZTAVE
(
INDEX_ICLEAR_COL
(:),:))
/
Z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ll
(
REAL
(
ZRMU0
(
INDEX_ICLEAR_COL
(:)))
)
/
ZCLEAR_COL_ll
ZTS_CLEAR
=
SUM_DD_R1_ll
(
REAL
(
ZTS
(
INDEX_ICLEAR_COL
(:)))
)
/
ZCLEAR_COL_ll
ZLSM_CLEAR
=
SUM_DD_R1_ll
(
REAL
(
ZLSM
(
INDEX_ICLEAR_COL
(:)))
)
/
ZCLEAR_COL_ll
ZLAT_CLEAR
=
SUM_DD_R1_ll
(
REAL
(
ZLAT
(
INDEX_ICLEAR_COL
(:)))
)
/
ZCLEAR_COL_ll
ZLON_CLEAR
=
SUM_DD_R1_ll
(
REAL
(
ZLON
(
INDEX_ICLEAR_COL
(:)))
)
/
ZCLEAR_COL_ll
!
ELSE
! no clear columns -> the first column is chosen, without physical meaning: it will not be
! unpacked after the call to the radiation ecmwf routine
...
...
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