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

Added a new variable to the restart file - unreasonable values

Status
Not open for further replies.
Dear all, I am using CLM4 and need to add two new variables to the restart file. For unrelated reasons I need to stick to CLM4 and cannot use CLM4.5.The situation is as follows: I start a  new hybrid model run using a restart file from a previous run as initial conditions. This  restart file doesn't have the variables I am trying to add to the restart file from the new run. After the model runs for one year, I receive the history files and restart file. The history files do have the values for the new variables and they seem reasonable. This is expected though, since writing a variable to a history file is controlled by a different code and is independent from writing into a restart file. However, the restart file while having the names of these two variables of interest in them, has stored only zeros and missing values to these variables (I would assume zeros are for land surface and  missing values over the oceans). I was wondering what might cause this issue? I have added these two variables to the restart file by making changes to the BiogeophysRestMod.F90. There are no typos in any varnames and pointers in this file.I have also checked clmtype.F90, clmtypeInitMod.F90, CanopyFluxesMod.F90 (that's where the values for the new variables are actually calculated) and histFldsMod.F90 (just in case). Everything looks okay there. Since I changed BiogeophysRestMod.F90 which is a source code, I checked if the changes are transferred correctly to the SourceMods in the case directory, and they are.Since the values of the new variables are written without any problems into history files and their spatial and temporal distribution seems valid, there should be a problem with writing into a restart file specifically. I was wondering if anyone has any suggestions on how to resolve this issue. Thank you so much in advance! Best wishes,Maryia
 
Status
Not open for further replies.
Top