Skip to content

Commit

Permalink
this spec init should possibly go completely
Browse files Browse the repository at this point in the history
  • Loading branch information
JhanSrbinovsky committed Jan 21, 2025
1 parent 0720441 commit 3178b8b
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/science/soilsnow/cbl_soilsnow_init_special.F90
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ SUBROUTINE spec_init_soil_snow(dels, soil, ssnow, canopy, met, bal, veg,heat_cap
REAL :: heat_cap_lower_limit(mp,ms)

ktau = ktau +1

IF( .NOT.cable_user%cable_runtime_coupled ) THEN
! since CMIP5 only ever (potentially) TRUE offline if special initialization
IF( .NOT.cable_user%cable_runtime_coupled ) THEN

IF( ktau_gl <= 1 ) THEN
IF (cable_runtime%um) canopy%dgdtg = 0.0 ! RML added um condition

! after discussion with BP
! N.B. snmin should exceed sum of layer depths, i.e. .11 m
ssnow%wbtot = 0.0
Expand Down Expand Up @@ -78,6 +78,8 @@ SUBROUTINE spec_init_soil_snow(dels, soil, ssnow, canopy, met, bal, veg,heat_cap
END IF
ENDIF ! if(.NOT.cable_runtime_coupled)

! this is done in all cases? overwrites gammzz from above and mediates thru
! snowd% (but only for single layer snow)
IF (ktau <= 1) THEN
xx=heat_cap_lower_limit(:,1)
ssnow%gammzz(:,1) = MAX( (1.0 - soil%ssat) * soil%css * soil%rhosoil &
Expand Down

0 comments on commit 3178b8b

Please sign in to comment.