@@ -31,7 +31,7 @@ module rrtmgp_sw_main
3131! !
3232 subroutine rrtmgp_sw_main_init (rrtmgp_root_dir , rrtmgp_sw_file_gas , rrtmgp_sw_file_clouds ,&
3333 active_gases_array , nrghice , mpicomm , mpirank , mpiroot , nLay , rrtmgp_phys_blksz , &
34- errmsg , errflg )
34+ is_init_gas_optics , is_init_cloud_optics , errmsg , errflg )
3535
3636 ! Inputs
3737 character (len= 128 ),intent (in ) :: &
@@ -50,9 +50,12 @@ subroutine rrtmgp_sw_main_init(rrtmgp_root_dir, rrtmgp_sw_file_gas, rrtmgp_sw_fi
5050 rrtmgp_phys_blksz, & ! < Number of horizontal points to process at once.
5151 nLay
5252 ! Outputs
53- character (len=* ), intent (out ) :: &
53+ logical , intent (inout ) :: &
54+ is_init_gas_optics, & ! < Initialization flag
55+ is_init_cloud_optics ! < Initialization flag
56+ character (len=* ), intent ( out ) :: &
5457 errmsg ! < CCPP error message
55- integer , intent (out ) :: &
58+ integer , intent ( out ) :: &
5659 errflg ! < CCPP error code
5760
5861 ! Initialize CCPP error handling variables
@@ -61,11 +64,11 @@ subroutine rrtmgp_sw_main_init(rrtmgp_root_dir, rrtmgp_sw_file_gas, rrtmgp_sw_fi
6164
6265 ! RRTMGP shortwave gas-optics (k-distribution) initialization
6366 call rrtmgp_sw_gas_optics_init(rrtmgp_root_dir, rrtmgp_sw_file_gas, active_gases_array,&
64- mpicomm, mpirank, mpiroot, errmsg, errflg)
67+ mpicomm, mpirank, mpiroot, is_init_gas_optics, errmsg, errflg)
6568
6669 ! RRTMGP shortwave cloud-optics initialization
6770 call rrtmgp_sw_cloud_optics_init(rrtmgp_root_dir, rrtmgp_sw_file_clouds, &
68- nrghice, mpicomm, mpirank, mpiroot, errmsg, errflg)
71+ nrghice, mpicomm, mpirank, mpiroot, is_init_cloud_optics, errmsg, errflg)
6972
7073 end subroutine rrtmgp_sw_main_init
7174
0 commit comments