Skip to content

Commit

Permalink
Fix a bug with the swredist code in ktherm=2. (#332)
Browse files Browse the repository at this point in the history
* Bug fix for dt_rhoi_hlyr

* Fix bug with swredist in ktherm 2
  • Loading branch information
dabail10 authored Aug 19, 2020
1 parent 4c42a82 commit ddec41e
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions columnphysics/icepack_therm_mushy.F90
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,8 @@ subroutine temperature_changes_salinity(dt, &

if (sw_redist) then

dt_rhoi_hlyr = dt / (rhoi*hilyr)

do k = 1, nilyr

Iswabs_tmp = c0 ! all Iswabs is moved into fswsfc
Expand Down
7 changes: 7 additions & 0 deletions configuration/scripts/options/set_nml.swredist
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
tr_pond_lvl = .true.
tr_pond_topo = .false.
tr_pond_cesm = .false.
ktherm = 2
sw_redist = .true.
sw_frac = 0.9d0
sw_dtemp = 0.02d0
1 change: 1 addition & 0 deletions configuration/scripts/tests/base_suite.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ smoke col 1x1 debug,bgcISPOL
smoke col 1x1 debug,bgcNICE
smoke col 1x1 debug,bgcsklNICE
smoke col 1x1 debug,run1year,thermo1
smoke col 1x1 debug,run1year,swredist
smoke col 1x1 debug,run1year,swccsm3
smoke col 1x1 debug,run1year,alt01
smoke col 1x1 debug,run1year,alt02
Expand Down

0 comments on commit ddec41e

Please sign in to comment.