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
986dc7f8
Commit
986dc7f8
authored
4 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 17/02/2021: budgets: several forgotten bugfixes
parent
20216734
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
src/MNH/ini_budget.f90
+1
-1
1 addition, 1 deletion
src/MNH/ini_budget.f90
src/MNH/lima_meyers.f90
+6
-4
6 additions, 4 deletions
src/MNH/lima_meyers.f90
src/MNH/rain_ice_fast_rg.f90
+1
-0
1 addition, 0 deletions
src/MNH/rain_ice_fast_rg.f90
src/MNH/relaxation.f90
+5
-2
5 additions, 2 deletions
src/MNH/relaxation.f90
with
13 additions
and
7 deletions
src/MNH/ini_budget.f90
+
1
−
1
View file @
986dc7f8
...
...
@@ -2773,7 +2773,7 @@ SV_BUDGETS: do jsv = 1, ksv
tzsource
%
clongname
=
'numerical diffusion'
call
Budget_source_add
(
tbudgets
(
ibudget
),
tzsource
,
gcond
,
ndifsv
)
gcond
=
ohorelax_sv
(
jsv
)
.or.
(
celec
/
=
'
none
'
.and.
lrelax2fw_ion
.and.
(
jsv
==
nsv_elecbeg
.or.
jsv
==
nsv_elecend
)
)
gcond
=
ohorelax_sv
(
jsv
)
.or.
(
celec
/
=
'
NONE
'
.and.
lrelax2fw_ion
.and.
(
jsv
==
nsv_elecbeg
.or.
jsv
==
nsv_elecend
)
)
tzsource
%
cmnhname
=
'REL'
tzsource
%
clongname
=
'relaxation'
call
Budget_source_add
(
tbudgets
(
ibudget
),
tzsource
,
gcond
,
nrelsv
)
...
...
This diff is collapsed.
Click to expand it.
src/MNH/lima_meyers.f90
+
6
−
4
View file @
986dc7f8
...
...
@@ -322,7 +322,7 @@ IF( INEGT >= 1 ) THEN
if
(
lbudget_rv
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_RV
),
'HIND'
,
prvs
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
if
(
lbudget_ri
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_RI
),
'HIND'
,
pris
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
if
(
lbudget_sv
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ni
),
'HIND'
,
pcis
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
if
(
lbudget_sv
)
&
if
(
lbudget_sv
.and.
nmod_ifn
>
0
)
&
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
),
'HIND'
,
pins
(:,
:,
:,
1
)
*
prhodj
(:,
:,
:)
)
end
if
...
...
@@ -357,7 +357,7 @@ IF( INEGT >= 1 ) THEN
Unpack
(
zris
(:),
mask
=
gnegt
(:,
:,
:),
field
=
pris
(:,
:,
:)
)
*
prhodj
(:,
:,
:)
)
if
(
lbudget_sv
)
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ni
),
'HIND'
,
&
Unpack
(
zcis
(:),
mask
=
gnegt
(:,
:,
:),
field
=
pcis
(:,
:,
:)
)
*
prhodj
(:,
:,
:)
)
if
(
lbudget_sv
)
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
),
'HIND'
,
&
if
(
lbudget_sv
.and.
nmod_ifn
>
0
)
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
),
'HIND'
,
&
Unpack
(
zins
(:,
1
),
mask
=
gnegt
(:,
:,
:),
field
=
pins
(:,
:,
:,
1
)
)
*
prhodj
(:,
:,
:)
)
end
if
!
...
...
@@ -373,7 +373,8 @@ IF( INEGT >= 1 ) THEN
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_nc
),
'HINC'
,
pccs
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ni
),
'HINC'
,
&
Unpack
(
zcis
(:),
mask
=
gnegt
(:,
:,
:),
field
=
pcis
(:,
:,
:)
)
*
prhodj
(:,
:,
:)
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
),
'HINC'
,
&
if
(
nmod_ifn
>
0
)
&
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
),
'HINC'
,
&
Unpack
(
zins
(:,
1
),
mask
=
gnegt
(:,
:,
:),
field
=
pins
(:,
:,
:,
1
)
)
*
prhodj
(:,
:,
:)
)
end
if
end
if
...
...
@@ -422,7 +423,8 @@ IF( INEGT >= 1 ) THEN
if
(
lbudget_sv
)
then
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_nc
),
'HINC'
,
pccs
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ni
),
'HINC'
,
pcis
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
),
'HINC'
,
pins
(:,
:,
:,
1
)
*
prhodj
(:,
:,
:)
)
if
(
nmod_ifn
>
0
)
&
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
),
'HINC'
,
pins
(:,
:,
:,
1
)
*
prhodj
(:,
:,
:)
)
end
if
end
if
...
...
This diff is collapsed.
Click to expand it.
src/MNH/rain_ice_fast_rg.f90
+
1
−
0
View file @
986dc7f8
...
...
@@ -424,6 +424,7 @@ REAL, DIMENSION(size(PRHODREF),7) :: ZZW1 ! Work arrays
!
!* 6.5 Melting of the graupeln
!
zzw
(:)
=
0.
!initialization necessary (for budgets)
WHERE
(
PRGT
(:)
>
XRTMIN
(
6
)
.AND.
PRGS
(:)
>
0.0
.AND.
PZT
(:)
>
XTT
)
ZZW
(:)
=
PRVT
(:)
*
PPRES
(:)/((
XMV
/
XMD
)
+
PRVT
(:))
! Vapor pressure
ZZW
(:)
=
PKA
(:)
*
(
XTT
-
PZT
(:))
+
&
...
...
This diff is collapsed.
Click to expand it.
src/MNH/relaxation.f90
+
5
−
2
View file @
986dc7f8
...
...
@@ -462,7 +462,9 @@ if ( lbudget_rg .and. ohorelax_rg ) call Budget_store_init( tbudgets(NBUDGET_R
if
(
lbudget_rh
.and.
ohorelax_rh
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_RH
),
'REL'
,
prrs
(:,
:,
:,
7
)
)
if
(
lbudget_sv
)
then
do
jsv
=
1
,
ksv
if
(
ohorelax_sv
(
jsv
)
)
call
Budget_store_init
(
tbudgets
(
jsv
+
NBUDGET_SV1
-
1
),
'REL'
,
prsvs
(:,
:,
:,
jsv
)
)
if
(
.not.
lrelax2fw_ion
.or.
(
jsv
/
=
nsv_elecbeg
.and.
jsv
/
=
nsv_elecend
)
)
then
if
(
ohorelax_sv
(
jsv
)
)
call
Budget_store_init
(
tbudgets
(
jsv
+
NBUDGET_SV1
-
1
),
'REL'
,
prsvs
(:,
:,
:,
jsv
)
)
end
if
end
do
end
if
...
...
@@ -747,8 +749,9 @@ if ( lbudget_rg .and. ohorelax_rg ) call Budget_store_end( tbudgets(NBUDGET_RG
if
(
lbudget_rh
.and.
ohorelax_rh
)
call
Budget_store_end
(
tbudgets
(
NBUDGET_RH
),
'REL'
,
prrs
(:,
:,
:,
7
)
)
if
(
lbudget_sv
)
then
do
jsv
=
1
,
ksv
if
(
.not.
lrelax2fw_ion
.or.
(
jsv
/
=
nsv_elecbeg
.and.
jsv
/
=
nsv_elecend
)
)
&
if
(
.not.
lrelax2fw_ion
.or.
(
jsv
/
=
nsv_elecbeg
.and.
jsv
/
=
nsv_elecend
)
)
then
if
(
ohorelax_sv
(
jsv
)
)
call
Budget_store_end
(
tbudgets
(
jsv
+
NBUDGET_SV1
-
1
),
'REL'
,
prsvs
(:,
:,
:,
jsv
)
)
end
if
end
do
end
if
...
...
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