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
3d2bf84c
Commit
3d2bf84c
authored
4 years ago
by
WAUTELET Philippe
Browse files
Options
Downloads
Patches
Plain Diff
Philippe 01/02/2021: bugfix: add missing CEDS source terms for SV budgets
parent
72a12bd9
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/ini_budget.f90
+22
-4
22 additions, 4 deletions
src/MNH/ini_budget.f90
src/MNH/lima_adjust.f90
+21
-0
21 additions, 0 deletions
src/MNH/lima_adjust.f90
with
43 additions
and
4 deletions
src/MNH/ini_budget.f90
+
22
−
4
View file @
3d2bf84c
...
...
@@ -6,6 +6,7 @@
! Modifications:
! P. Wautelet 17/08/2020: add Budget_preallocate subroutine
! P. Wautelet 11/01/2021: ignore xbuwri for cartesian boxes (write at every xbulen interval)
! P. Wautelet 01/02/2021: bugfix: add missing CEDS source terms for SV budgets
!-----------------------------------------------------------------
module
mode_ini_budget
...
...
@@ -224,10 +225,11 @@ use modd_parameters, only: jphext
use
modd_param_c2r2
,
only
:
ldepoc_c2r2
=>
ldepoc
,
lrain_c2r2
=>
lrain
,
lsedc_c2r2
=>
lsedc
,
lsupsat_c2r2
=>
lsupsat
use
modd_param_ice
,
only
:
ladj_after
,
ladj_before
,
ldeposc_ice
=>
ldeposc
,
lred
,
lsedic_ice
=>
lsedic
,
lwarm_ice
=>
lwarm
use
modd_param_n
,
only
:
cactccn
,
celec
use
modd_param_lima
,
only
:
lacti_lima
=>
lacti
,
lcold_lima
=>
lcold
,
ldepoc_lima
=>
ldepoc
,
lhail_lima
=>
lhail
,
&
lhhoni_lima
=>
lhhoni
,
lmeyers_lima
=>
lmeyers
,
lnucl_lima
=>
lnucl
,
lptsplit
,
&
lrain_lima
=>
lrain
,
lscav_lima
=>
lscav
,
lsedc_lima
=>
lsedc
,
lsedi_lima
=>
lsedi
,
&
lsnow_lima
=>
lsnow
,
lwarm_lima
=>
lwarm
,
&
use
modd_param_lima
,
only
:
laero_mass_lima
=>
laero_mass
,
lacti_lima
=>
lacti
,
lcold_lima
=>
lcold
,
ldepoc_lima
=>
ldepoc
,
&
lhail_lima
=>
lhail
,
lhhoni_lima
=>
lhhoni
,
lmeyers_lima
=>
lmeyers
,
lnucl_lima
=>
lnucl
,
&
lptsplit
,
&
lrain_lima
=>
lrain
,
lscav_lima
=>
lscav
,
lsedc_lima
=>
lsedc
,
lsedi_lima
=>
lsedi
,
&
lsnow_lima
=>
lsnow
,
lwarm_lima
=>
lwarm
,
&
nmod_ccn
,
nmod_ifn
,
nmod_imm
use
modd_salt
,
only
:
lsalt
use
modd_viscosity
,
only
:
lvisc
,
lvisc_r
,
lvisc_sv
,
lvisc_th
,
lvisc_uvw
...
...
@@ -3132,10 +3134,18 @@ SV_BUDGETS: do jsv = 1, ksv
else
if
(
jsv
>=
nsv_lima_ccn_acti
.and.
jsv
<=
nsv_lima_ccn_acti
+
nmod_ccn
-
1
)
then
SV_LIMA
! Activated CCN concentration
gcond
=
lwarm_lima
tzsource
%
cmnhname
=
'CEDS'
tzsource
%
clongname
=
'adjustment to saturation'
call
Budget_source_add
(
tbudgets
(
ibudget
),
tzsource
,
gcond
,
igroup
)
else
if
(
jsv
==
nsv_lima_scavmass
)
then
SV_LIMA
! Scavenged mass variable
gcond
=
lscav_lima
.and.
laero_mass_lima
tzsource
%
cmnhname
=
'CEDS'
tzsource
%
clongname
=
'adjustment to saturation'
call
Budget_source_add
(
tbudgets
(
ibudget
),
tzsource
,
gcond
,
igroup
)
else
if
(
jsv
==
nsv_lima_ni
)
then
SV_LIMA
...
...
@@ -3252,10 +3262,18 @@ SV_BUDGETS: do jsv = 1, ksv
else
if
(
jsv
>=
nsv_lima_ifn_nucl
.and.
jsv
<=
nsv_lima_ifn_nucl
+
nmod_ifn
-
1
)
then
SV_LIMA
! Nucleated IFN concentration
gcond
=
lcold_lima
tzsource
%
cmnhname
=
'CEDS'
tzsource
%
clongname
=
'adjustment to saturation'
call
Budget_source_add
(
tbudgets
(
ibudget
),
tzsource
,
gcond
,
igroup
)
else
if
(
jsv
>=
nsv_lima_imm_nucl
.and.
jsv
<=
nsv_lima_imm_nucl
+
nmod_imm
-
1
)
then
SV_LIMA
! Nucleated IMM concentration
gcond
=
lcold_lima
tzsource
%
cmnhname
=
'CEDS'
tzsource
%
clongname
=
'adjustment to saturation'
call
Budget_source_add
(
tbudgets
(
ibudget
),
tzsource
,
gcond
,
igroup
)
else
if
(
jsv
==
nsv_lima_hom_haze
)
then
SV_LIMA
...
...
This diff is collapsed.
Click to expand it.
src/MNH/lima_adjust.f90
+
21
−
0
View file @
3d2bf84c
...
...
@@ -137,6 +137,7 @@ END MODULE MODI_LIMA_ADJUST
! P. Wautelet 10/04/2019: replace ABORT and STOP calls by Print_msg
! P. Wautelet 28/05/2019: move COUNTJV function to tools.f90
! P. Wautelet 28/05/2020: bugfix: correct array start for PSVT and PSVS
! P. Wautelet 01/02/2021: bugfix: add missing CEDS source terms for SV budgets
!-------------------------------------------------------------------------------
!
!* 0. DECLARATIONS
...
...
@@ -382,16 +383,26 @@ if ( nbumod == kmi .and. lbu_enable ) then
if
(
lbudget_sv
)
then
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_nc
),
'CEDS'
,
pccs
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ni
),
'CEDS'
,
pcis
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
if
(
lscav
.and.
laero_mass
)
&
call
Budget_store_init
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_scavmass
),
'CEDS'
,
pmas
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
if
(
lwarm
)
then
do
jl
=
1
,
nmod_ccn
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_ccn_free
-
1
+
jl
call
Budget_store_init
(
tbudgets
(
idx
),
'CEDS'
,
pnfs
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_ccn_acti
-
1
+
jl
call
Budget_store_init
(
tbudgets
(
idx
),
'CEDS'
,
pnas
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
end
do
end
if
if
(
lcold
)
then
do
jl
=
1
,
nmod_ifn
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_ifn_free
-
1
+
jl
call
Budget_store_init
(
tbudgets
(
idx
),
'CEDS'
,
pifs
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
-
1
+
jl
call
Budget_store_init
(
tbudgets
(
idx
),
'CEDS'
,
pins
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
end
do
do
jl
=
1
,
nmod_imm
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_imm_nucl
-
1
+
jl
call
Budget_store_init
(
tbudgets
(
idx
),
'CEDS'
,
pnis
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
end
do
end
if
end
if
...
...
@@ -1226,16 +1237,26 @@ if ( nbumod == kmi .and. lbu_enable ) then
if
(
lbudget_sv
)
then
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_nc
),
'CEDS'
,
pccs
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_ni
),
'CEDS'
,
pcis
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
if
(
lscav
.and.
laero_mass
)
&
call
Budget_store_end
(
tbudgets
(
NBUDGET_SV1
-
1
+
nsv_lima_scavmass
),
'CEDS'
,
pmas
(:,
:,
:)
*
prhodj
(:,
:,
:)
)
if
(
lwarm
)
then
do
jl
=
1
,
nmod_ccn
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_ccn_free
-
1
+
jl
call
Budget_store_end
(
tbudgets
(
idx
),
'CEDS'
,
pnfs
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_ccn_acti
-
1
+
jl
call
Budget_store_end
(
tbudgets
(
idx
),
'CEDS'
,
pnas
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
end
do
end
if
if
(
lcold
)
then
do
jl
=
1
,
nmod_ifn
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_ifn_free
-
1
+
jl
call
Budget_store_end
(
tbudgets
(
idx
),
'CEDS'
,
pifs
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_ifn_nucl
-
1
+
jl
call
Budget_store_end
(
tbudgets
(
idx
),
'CEDS'
,
pins
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
end
do
do
jl
=
1
,
nmod_imm
idx
=
NBUDGET_SV1
-
1
+
nsv_lima_imm_nucl
-
1
+
jl
call
Budget_store_init
(
tbudgets
(
idx
),
'CEDS'
,
pnis
(:,
:,
:,
jl
)
*
prhodj
(:,
:,
:)
)
end
do
end
if
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