Skip to content

Commit b893dc9

Browse files
committed
print_update_clm: only enter if output is written
1 parent 80154e4 commit b893dc9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

bldsva/intf_DA/pdaf/model/wrapper_tsmp.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,9 @@ void update_tsmp(){
200200
#if defined CLMSA
201201
if((model == tag_model_clm) && ((clmupdate_swc != 0) || (clmupdate_T != 0))){
202202
update_clm(&tstartcycle, &mype_world);
203-
print_update_clm(&tcycle, &total_steps);
203+
if(clmprint_swc == 1 || clmupdate_texture == 1 || clmupdate_texture == 2){
204+
print_update_clm(&tcycle, &total_steps);
205+
}
204206
}
205207
#endif
206208

0 commit comments

Comments
 (0)