Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
SAMSIM3.0
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
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
Deutloff, Jakob
SAMSIM3.0
Commits
29516032
Commit
29516032
authored
3 years ago
by
JakobDeutloff
Browse files
Options
Downloads
Patches
Plain Diff
mo_grav_drain resetted
parent
8fa342f2
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
mo_grav_drain.f90
+10
-7
10 additions, 7 deletions
mo_grav_drain.f90
with
10 additions
and
7 deletions
mo_grav_drain.f90
+
10
−
7
View file @
29516032
...
...
@@ -72,7 +72,8 @@ CONTAINS
!! Added harmonic mean for permeability by Philipp Griewank (2014-01-05)
SUBROUTINE
fl_grav_drain
(
S_br
,
S_bu
,
psi_l
,
psi_s
,
thick
,
S_abs
,
H_abs
,
T
,
m
,
dt
,
Nlayer
,
N_active
,
ray
,
&
T_bottom
,
S_bu_bottom
,
grav_drain
,
grav_temp
,
grav_salt
,
grav_heat_flag
,
harmonic_flag
,
fl_brine_bgc
)
T_bottom
,
S_bu_bottom
,
grav_drain
,
grav_temp
,
grav_salt
,
grav_heat_flag
,
harmonic_flag
,
&
grav_heat_flux_down
,
grav_heat_flux_up
,
fl_brine_bgc
)
INTEGER
,
INTENT
(
in
)
::
Nlayer
,
N_active
,
grav_heat_flag
,
harmonic_flag
REAL
(
wp
),
DIMENSION
(
Nlayer
),
INTENT
(
in
)
::
S_br
,
S_bu
,
thick
,
T
,
psi_l
,
psi_s
REAL
(
wp
),
INTENT
(
in
)
::
dt
,
S_bu_bottom
,
T_bottom
...
...
@@ -90,6 +91,7 @@ CONTAINS
REAL
(
wp
)
::
heat_loss
!< Amount of heat transported from the ice [J]
INTEGER
::
k
,
kk
REAL
(
wp
),
DIMENSION
(
Nlayer
+1
,
Nlayer
+1
),
INTENT
(
inout
),
OPTIONAL
::
fl_brine_bgc
REAL
(
wp
),
INTENT
(
out
)
::
grav_heat_flux_down
,
grav_heat_flux_up
ray_mini
=
ray_crit
!Arises from the optimization of the r
heat_loss
=
0._wp
...
...
@@ -192,7 +194,8 @@ CONTAINS
IF
(
grav_heat_flag
==
2
)
THEN
H_abs
(
N_active
)
=
H_abs
(
N_active
)
+
heat_loss
-
fl_up
(
N_active
)
*
c_l
*
T_bottom
END
IF
grav_heat_flux_down
=
grav_heat_flux_down
+
heat_loss
grav_heat_flux_up
=
grav_heat_flux_up
-
fl_up
(
N_active
)
*
c_l
*
T_bottom
IF
(
MINVAL
(
S_abs
)
<
0.0_wp
)
THEN
PRINT
*
,
'negative salinity after gravity drainige, aborted'
,
S_abs
...
...
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