Skip to content

Commit

Permalink
fixing restart bug
Browse files Browse the repository at this point in the history
  • Loading branch information
bstephens82 committed Nov 28, 2023
1 parent cb43f04 commit 8ba5f2c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/physics/cam/clubb_intr.F90
Original file line number Diff line number Diff line change
Expand Up @@ -1679,7 +1679,7 @@ subroutine clubb_ini_cam(pbuf2d)
iiedsclr_thl, &
iiedsclr_CO2

use time_manager, only: is_first_step
use time_manager, only: is_first_step, is_first_restart_step
use clubb_api_module, only: hydromet_dim
use constituents, only: cnst_get_ind
use phys_control, only: phys_getopts
Expand Down Expand Up @@ -2157,7 +2157,7 @@ subroutine clubb_ini_cam(pbuf2d)
if (l_stats) then

do i=1, pcols
if (is_first_step()==.true. .and. i==1) then
if ((is_first_step()==.true..or.is_first_restart_step()==.true.) .and. i==1) then
do_first_step = .true.
else
do_first_step = .false.
Expand Down

0 comments on commit 8ba5f2c

Please sign in to comment.