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 4f3bb32 commit 7ea7f24
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 @@ -1681,7 +1681,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 @@ -2159,7 +2159,7 @@ subroutine clubb_ini_cam(pbuf2d)
if (stats_metadata%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 7ea7f24

Please sign in to comment.