Include static variables in all history files

Status
Not open for further replies.

Shreya Bhowmick

Shreya Bhowmick
New Member
Dear everyone,

I want to open the all the history files in grads using templates for which all the files needs to have the same number of variables. The first history file of any run of CLM has some static variables which are not present in the next history files. Is there any way to write those static variables in all history files or include them in all history files?

Thankyou for your time,
Shreya Bhowmick
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
I think you could make a code modification in histFileMod.F90. In this section of code:

! Write 3D time constant history variables only to first primary tape
if ( do_3Dtconst .and. t == 1 .and. tape(t)%ntimes == 1 )then
call htape_timeconst3D(t, &
bounds, watsat_col, sucsat_col, bsw_col, hksat_col, mode='write')
do_3Dtconst = .false.
end if

You could try setting do_3Dtconst = .true. instead of to .false. I think that would write the static variables to each history file.
 
Status
Not open for further replies.
Back
Top