Scheduled Downtime
On Tuesday 24 October 2023 @ 5pm MT the forums will be in read only mode in preparation for the downtime. On Wednesday 25 October 2023 @ 5am MT, this website will be down for maintenance and expected to return online later in the morning.
Normal Operations
The forums are back online with normal operations. If you notice any issues or errors related to the forums, please reach out to help@ucar.edu

Include static variables in all history files

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.
 
Top