Skip to content

Commit

Permalink
Update GFS_rrtmgp_setup.F90
Browse files Browse the repository at this point in the history
Moved is_initialized test to after the input flags have been set
  • Loading branch information
michalakes authored Nov 3, 2023
1 parent 364e177 commit 0140c17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions physics/GFS_rrtmgp_setup.F90
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ subroutine GFS_rrtmgp_setup_init(do_RRTMGP, imp_physics, imp_physics_fer_hires,
! Initialize the CCPP error handling variables
errmsg = ''
errflg = 0

if (is_initialized) return

! Consistency checks
if (.not. do_RRTMGP) then
Expand Down Expand Up @@ -125,6 +123,8 @@ subroutine GFS_rrtmgp_setup_init(do_RRTMGP, imp_physics, imp_physics_fer_hires,
iyear0 = 0
monthd = 0

if (is_initialized) return

! Call initialization routines..
call sol_init ( me, isol, solar_file, con_solr_2008, con_solr_2002, con_pi )
call aer_init ( levr, me, iaermdl, iaerflg, lalw1bd, aeros_file, con_pi, con_t0c, &
Expand Down

0 comments on commit 0140c17

Please sign in to comment.