Skip to content

Commit

Permalink
Changes to Logging and Initialization of the CLM Lake Model (Includi…
Browse files Browse the repository at this point in the history
…ng PR#1863) (#1844)

* Changes to logging and initialization of the CLM Lake Model.
* merge ccpp-physics #91 (UFS-SRW v3.0.0 SciDoc updates)

1. Use ice thickness hice(i) to find the level in the lake where ice is
   zero.
2. Do not allow lake temperature to be below freezing point if there is
   no ice.
3. If there is no snow or ice, do not allow surface lake temperature to
   be below freezing point.
   These changes fixed the problem with large errors in the energy budget
   at the beginning of the cold-start run with lakes.
4. Added flag to turn on debug print statements in the CLM lake model.

* explicitly turn of frac_ice for flake

* t_grnd(i) should be t_grnd(c)
-------------------------------------------------------------------
Co-authored-by: Samuel Trahan <samuel.trahan@noaa.gov>
Co-authored-by: Grant Firl <grant.firl@noaa.gov>
  • Loading branch information
SamuelTrahanNOAA authored Aug 22, 2023
1 parent 0eee0a8 commit bef8280
Show file tree
Hide file tree
Showing 12 changed files with 4,936 additions and 5,255 deletions.
2 changes: 1 addition & 1 deletion FV3
2 changes: 1 addition & 1 deletion tests/bl_date.conf
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
export BL_DATE=20230816
export BL_DATE=20230818

2 changes: 1 addition & 1 deletion tests/default_vars.sh
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ export LKM=0 # 0=no lake, 1=run lake model, 2=run both lake and nsst on lake poi
export IOPT_LAKE=2 # 1=flake, 2=clm lake
export LAKEFRAC_THRESHOLD=0.0 # lake fraction must be higher for lake model to run it
export LAKEDEPTH_THRESHOLD=1.0 # lake must be deeper (in meters) for a lake model to run it
export FRAC_ICE=.false.
export FRAC_ICE=.true. # should be false for flake, true for clm_lake

export CPL=.false.
export CPLCHM=.false.
Expand Down
1,652 changes: 812 additions & 840 deletions tests/logs/RegressionTests_acorn.log

Large diffs are not rendered by default.

3,343 changes: 1,511 additions & 1,832 deletions tests/logs/RegressionTests_cheyenne.log

Large diffs are not rendered by default.

1,527 changes: 776 additions & 751 deletions tests/logs/RegressionTests_gaea.log

Large diffs are not rendered by default.

2,106 changes: 1,054 additions & 1,052 deletions tests/logs/RegressionTests_hera.log

Large diffs are not rendered by default.

1,552 changes: 776 additions & 776 deletions tests/logs/RegressionTests_orion.log

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion tests/parm/control_flake.nml.IN
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ deflate_level=1
lakefrac_threshold = @[LAKEFRAC_THRESHOLD] ! 0.15
lakedepth_threshold = @[LAKEDEPTH_THRESHOLD] ! 0.5
clm_lake_debug = .false.

frac_ice = @[FRAC_ICE] ! false for flake, true for clm lake
fhzero = 6
h2o_phys = .true.
ldiag3d = .false.
Expand Down
1 change: 1 addition & 0 deletions tests/tests/control_flake
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export RESTART_INTERVAL=6

export LKM=1
export IOPT_LAKE=1
export FRAC_ICE=.false.

export DO_SPPT=.true.
export DO_SHUM=.true.
Expand Down
1 change: 1 addition & 0 deletions tests/tests/control_flake_debug
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ export OUTPUT_FH="0 1"

export LKM=1
export IOPT_LAKE=1
export FRAC_ICE=.false.

export DO_SPPT=.true.
export DO_SHUM=.true.
Expand Down
1 change: 1 addition & 0 deletions tests/tests/rap_flake_debug
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ export CCPP_SUITE=FV3_RAP_flake
export INPUT_NML=rap.nml.IN
export FIELD_TABLE=field_table_thompson_aero_tke
export DIAG_TABLE=diag_table_rap
export FRAC_ICE=.false.

export IMP_PHYSICS=8
export DNATS=0
Expand Down

0 comments on commit bef8280

Please sign in to comment.