Skip to content

Commit 1ae719f

Browse files
committed
fix: initialize the da_tape only, when CLM:print_da_hist_file is set
1 parent af1fe61 commit 1ae719f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

interface/model/eclm/enkf_clm_5.F90

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ subroutine clm_init(finname, pdaf_id, pdaf_max, mype) bind(C,name="clm_init")
7070
use, intrinsic :: iso_C_binding, only: c_char, c_int
7171
use enkf_clm_mod, only: COMM_model_clm
7272
#if defined CLMSA
73-
use enkf_clm_mod, only: define_clm_statevec
73+
use enkf_clm_mod, only: define_clm_statevec, clmprint_da_hist_file
7474
use histFileMod, only: hist_init_da_tape
7575
#endif
7676
use clm_varcon, only: averaging_var
@@ -189,7 +189,7 @@ subroutine clm_init(finname, pdaf_id, pdaf_max, mype) bind(C,name="clm_init")
189189
#if defined CLMSA
190190
averaging_var=0
191191
call define_clm_statevec(mype)
192-
call hist_init_da_tape()
192+
if (clmprint_da_hist_file == 1) call hist_init_da_tape()
193193
#endif
194194

195195

0 commit comments

Comments
 (0)