Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
sfx
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
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
inmcm-mirror
sfx
Commits
3271fd61
Commit
3271fd61
authored
4 months ago
by
Виктория Суязова
Committed by
Anna Shestakova
3 weeks ago
Browse files
Options
Downloads
Patches
Plain Diff
esm for Alexandra
parent
ea432eb5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
srcF/sfx_config.f90
+1
-1
1 addition, 1 deletion
srcF/sfx_config.f90
srcF/sfx_esm.f90
+5
-1
5 additions, 1 deletion
srcF/sfx_esm.f90
srcF/sfx_most_snow.f90
+4
-22
4 additions, 22 deletions
srcF/sfx_most_snow.f90
with
10 additions
and
24 deletions
srcF/sfx_config.f90
+
1
−
1
View file @
3271fd61
...
...
@@ -11,7 +11,7 @@
! --------------------------------------------------------------------------------
implicit
none
! --------------------------------------------------------------------------------
public
::
set_dataset
public
!> @brief model enum def.
...
...
This diff is collapsed.
Click to expand it.
srcF/sfx_esm.f90
+
5
−
1
View file @
3271fd61
...
...
@@ -174,6 +174,7 @@ contains
real
::
Tsemi
!< semi-sum of potential temperature at 'h' and at surface [K]
real
::
dQ
!< difference between humidity at 'h' and at surface [g/g]
real
::
z0_m
!< surface aerodynamic roughness (should be < 0 for water bodies surface)
real
::
z0_map
!< surface aerodynamic roughness (should be < 0 for water bodies surface)
! ----------------------------------------------------------------------------
! --- local variables
...
...
@@ -232,6 +233,8 @@ contains
dQ
=
meteo
%
dQ
h
=
meteo
%
h
z0_m
=
meteo
%
z0_m
z0_map
=
meteo
%
z0_m
! --- define surface type
if
(
z0_m
<
0.0
)
then
...
...
@@ -242,7 +245,8 @@ contains
if
(
surface_type
==
surface_ocean
)
then
! --- define surface roughness [momentum] & dynamic velocity in neutral conditions
call
get_charnock_roughness
(
z0_m
,
u_dyn0
,
U
,
h
,
numerics
%
maxiters_charnock
)
!call get_charnock_roughness(z0_m, u_dyn0, U, h, numerics%maxiters_charnock)
call
get_dynamic_roughness_all
(
z0_m
,
u_dyn0
,
U
,
depth
,
h
,
numerics
%
maxiters_charnock
,
z0_map
,
1
)
! --- define relative height
h0_m
=
h
/
z0_m
endif
...
...
This diff is collapsed.
Click to expand it.
srcF/sfx_most_snow.f90
+
4
−
22
View file @
3271fd61
...
...
@@ -11,6 +11,7 @@ module sfx_most_snow
use
sfx_data
use
sfx_surface
use
sfx_most_snow_param
use
sfx_config
! --------------------------------------------------------------------------------
! directives list
...
...
@@ -159,31 +160,12 @@ contains
z0_map
=
meteo
%
z0_m
call
get_dynamic_roughness_definition
(
surface_type
,
ocean_z0m_id
,
land_z0m_id
,
lake_z0m_id
,
snow_z0m_id
,
&
call
get_dynamic_roughness_definition
(
1
,
ocean_z0m_id
,
land_z0m_id
,
lake_z0m_id
,
snow_z0m_id
,
&
forest_z0m_id
,
usersf_z0m_id
,
z0m_id
)
call
get_dynamic_roughness_all
(
z0_m
,
u_dyn0
,
U
,
depth
,
h
,
numerics
%
maxiters_charnock
,
z0_map
,
z0m_id
)
! --- define surface type
if
(
z0_m
<
0.0
)
then
surface_type
=
surface_ocean
else
if
(
z0_m
==
0.0
)
then
surface_type
=
surface_snow
else
surface_type
=
surface_land
end
if
! if (surface_type == surface_ocean) then
! ! --- define surface roughness [momentum] & dynamic velocity in neutral conditions
! call get_charnock_roughness(z0_m, u_dyn0, U, h, numerics%maxiters_charnock)
! ! --- define relative height
! h0_m = h / z0_m
!endif
!if (surface_type == surface_land) then
! ! --- define relative height
! h0_m = h / z0_m
! ! --- define dynamic velocity in neutral conditions
! u_dyn0 = U * kappa / log(h0_m)
!end if
! --- define relative height
h0_m
=
h
/
z0_m
! --- define thermal roughness & B = log(z0_m / z0_h)
...
...
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