Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
ocean-mixing
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
ocean-mixing
Commits
07c2f755
Commit
07c2f755
authored
6 months ago
by
Ramil Ahtamyanov
Browse files
Options
Downloads
Patches
Plain Diff
add legacy_neutral_mld subroutine
parent
3d1309a5
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
obl_legacy.f90
+28
-0
28 additions, 0 deletions
obl_legacy.f90
with
28 additions
and
0 deletions
obl_legacy.f90
+
28
−
0
View file @
07c2f755
...
...
@@ -106,6 +106,34 @@ module obl_legacy
end
do
end
subroutine
legacy_rit_top
subroutine
legacy_neutral_mld
(
rlh
,
tau_u
,
tau_v
,
border_shift
,
lu
,
neutral_mld
,
u_star
)
real
,
intent
(
in
)
::
rlh
(:,:)
real
,
intent
(
in
)
::
tau_u
(:,:),
tau_v
(:,:)
real
,
intent
(
in
)
::
lu
(:,:)
integer
,
intent
(
in
)
::
border_shift
real
,
intent
(
inout
)
::
neutral_mld
(:,:)
real
,
intent
(
out
)
::
u_star
(:,:)
! Local variables
real
::
rlt
,
coriolis
! Auxiliary variables
integer
::
i
,
j
! Loop indices
integer
::
nx
,
ny
! Array sizes
! Parameters: coriolis_rit_top_min, lu_min
nx
=
size
(
neutral_mld
,
1
)
ny
=
size
(
neutral_mld
,
2
)
do
j
=
1
+
border_shift
,
ny
-
border_shift
do
i
=
1
+
border_shift
,
nx
-
border_shift
if
(
lu
(
i
,
j
)
>
lu_min
)
then
rlt
=
(
rlh
(
i
,
j
)
+
rlh
(
i
-1
,
j
)
+
rlh
(
i
,
j
-1
)
+
rlh
(
i
-1
,
j
-1
))
/
4.0
coriolis
=
max
(
abs
(
rlt
),
coriolis_rit_top_min
)
! freezing in 10N,S
u_star
(:,:)
=
sqrt
(
sqrt
(
tau_u
(
i
,
j
)
**
2
+
tau_v
(
i
,
j
)
**
2
))
neutral_mld
(
i
,
j
)
=
0.25
*
u_star
(
i
,
j
)
/
coriolis
end
if
end
do
end
do
end
subroutine
legacy_neutral_mld
subroutine
legacy_u2
(
uu
,
dy
,
dyh
,
hhu
,
hhq
,
border_shift
,
lu
,
u2
)
real
,
intent
(
in
)
::
uu
(:,:,:)
real
,
intent
(
in
)
::
dy
(:,:)
...
...
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