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
aaaa761d
Commit
aaaa761d
authored
6 years ago
by
Gaelle DELAUTIER
Browse files
Options
Downloads
Patches
Plain Diff
S.Riette 15/5/2018 : add option O using Temperature with old formulae
parent
63db582e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/MNH/compute_frac_ice.f90
+8
-3
8 additions, 3 deletions
src/MNH/compute_frac_ice.f90
with
8 additions
and
3 deletions
src/MNH/compute_frac_ice.f90
+
8
−
3
View file @
aaaa761d
...
...
@@ -238,12 +238,15 @@ END SUBROUTINE COMPUTE_FRAC_ICE2D
!! -------------
!! Original 13/03/06
!! S. Riette April 2011 optimisation
!! S. Riette 08/2016 add option O
!!
!! --------------------------------------------------------------------------
! 0. DECLARATIONS
! ------------
!
USE
MODD_NEB
,
ONLY
:
XTMINMIX
,
XTMAXMIX
USE
MODD_CST
,
ONLY
:
XTT
USE
MODE_MSG
!
IMPLICIT
NONE
!
...
...
@@ -265,7 +268,8 @@ REAL, DIMENSION(:), INTENT(INOUT) :: PFRAC_ICE ! Ice fraction (1 for ice only,
!
IF
(
HFRAC_ICE
==
'T'
)
THEN
!using Temperature
PFRAC_ICE
(:)
=
(
XTMAXMIX
-
PT
(:)
)
/
(
XTMAXMIX
-
XTMINMIX
)
! freezing interval
PFRAC_ICE
(:)
=
MAX
(
0.
,
MIN
(
1.
,
PFRAC_ICE
(:)
)
)
ELSEIF
(
HFRAC_ICE
==
'O'
)
THEN
!using Temperature with old formulae
PFRAC_ICE
(:)
=
(
XTT
-
PT
(:)
)
/
40.
! freezing interval
ELSEIF
(
HFRAC_ICE
==
'N'
)
THEN
!No ice
PFRAC_ICE
(:)
=
0.
ELSEIF
(
HFRAC_ICE
==
'S'
)
THEN
!Same as previous
...
...
@@ -273,9 +277,10 @@ ELSEIF (HFRAC_ICE=='S') THEN !Same as previous
ELSE
WRITE
(
*
,
*
)
' STOP'
WRITE
(
*
,
*
)
' INVALID OPTION IN COMPUTE_FRAC_ICE, HFRAC_ICE='
,
HFRAC_ICE
CALL
ABORT
STOP
CALL
PRINT_MSG
(
NVERB_FATAL
,
'GEN'
,
'COMPUTE_FRAC_ICE'
,
''
)
ENDIF
PFRAC_ICE
(:)
=
MAX
(
0.
,
MIN
(
1.
,
PFRAC_ICE
(:)
)
)
END
SUBROUTINE
COMPUTE_FRAC_ICE1D
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