Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Flexpart
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Benjamin Püschel
Flexpart
Commits
497dad93
Commit
497dad93
authored
May 10, 2024
by
Lucie Bakels
Browse files
Options
Downloads
Patches
Plain Diff
Petra: small changes in comments and combining loops
Former-commit-id:
61cb8f63
parent
96c23505
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/verttransform_mod.f90
+22
-38
22 additions, 38 deletions
src/verttransform_mod.f90
with
22 additions
and
38 deletions
src/verttransform_mod.f90
+
22
−
38
View file @
497dad93
...
...
@@ -998,9 +998,9 @@ subroutine verttransform_ecmwf_cloud(lcw_tmp,lcwsum_tmp,nxlim,nylim,&
highconvp_clrange_eta
,
lowconvp_clrange_eta
,
uvzlev
)
#endif
icloudbot_tmp
(
ix
,
jy
)
=
icmv
!we will use icloudtop as workspace for cloud top
icloudbot_tmp
(
ix
,
jy
)
=
icmv
! Find the bottom and top of
present
clouds in gridcell ix, jy
! Find the bottom and top of clouds in grid
cell ix, jy
call
identify_cloud
(
ix
,
jy
,
lcw_tmp
,
lcwsum_tmp
,
nxlim
,
nylim
,
&
ctwc_tmp
,
clwc_tmp
,
ciwc_tmp
,
icloudbot_tmp
,
icloudtop_tmp
,
rho_tmp
,
&
tt_tmp
,
qv_tmp
,
uvzlev
,
wzlev
)
...
...
@@ -1025,7 +1025,7 @@ subroutine convert_cloud_params(ix,jy,nxlim,nylim,max_cloudthck_eta,conv_clrange
integer
,
intent
(
out
)
::
max_cloudthck_eta
integer
,
dimension
(
2
),
intent
(
out
)
::
conv_clrange_eta
,
highconvp_clrange_eta
,
&
lowconvp_clrange_eta
integer
::
kz
integer
::
i
,
kz
! Convert cloud parameters to eta coords.
...
...
@@ -1040,41 +1040,25 @@ subroutine convert_cloud_params(ix,jy,nxlim,nylim,max_cloudthck_eta,conv_clrange
exit
endif
end
do
do
i
=
1
,
2
do
kz
=
1
,
nz
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
conv_clrange
(
1
))
then
conv_clrange_eta
(
1
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
conv_clrange
(
i
))
then
conv_clrange_eta
(
i
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
exit
endif
end
do
do
kz
=
1
,
nz
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
conv_clrange
(
2
))
then
conv_clrange_eta
(
2
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
high
conv
p
_clrange
(
i
))
then
high
conv
p
_clrange_eta
(
i
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
exit
endif
end
do
do
kz
=
1
,
nz
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
high
convp_clrange
(
1
))
then
high
convp_clrange_eta
(
1
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
low
convp_clrange
(
i
))
then
low
convp_clrange_eta
(
i
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
exit
endif
end
do
do
kz
=
1
,
nz
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
highconvp_clrange
(
2
))
then
highconvp_clrange_eta
(
2
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
exit
endif
end
do
do
kz
=
1
,
nz
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
lowconvp_clrange
(
1
))
then
lowconvp_clrange_eta
(
1
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
exit
endif
end
do
do
kz
=
1
,
nz
if
(
uvzlev
(
ix
,
jy
,
kz
)
.gt.
lowconvp_clrange
(
2
))
then
lowconvp_clrange_eta
(
2
)
=
int
(
uvheight
(
kz
)
*
eta_convert
)
exit
endif
end
do
end
subroutine
convert_cloud_params
...
...
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