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

Error reading clm_inparm namelist

Status
Not open for further replies.

samrabin

Sam Rabin
Member
I've been continuing my 2-degree spinup of ctsm5.1.dev092, but the most recent segment (resuming at 1301-01-01) failed when reading clm_inparm. From lnd.log:
Code:
 Attempting to initialize the land model .....

 Attempting to initialize run control settings .....
 Read in clm_inparm namelist from: lnd_in
 ENDRUN:
 ERROR: ERROR reading clm_inparm namelistERROR in controlMod.F90 at line 325

And from cesm.log:
Code:
36: ERROR: ERROR reading clm_inparm namelistERROR in controlMod.F90 at line 325
36:Image              PC                Routine            Line        Source
36:cesm.exe           00000000013EDFA6  Unknown               Unknown  Unknown
36:cesm.exe           0000000000F6C6A0  shr_abort_mod_mp_         114  shr_abort_mod.F90
36:cesm.exe           00000000005B800F  abortutils_mp_end          55  abortutils.F90
36:cesm.exe           000000000060E86B  controlmod_mp_con         325  controlMod.F90
36:cesm.exe           00000000005D0BA7  clm_initializemod          97  clm_initializeMod.F90
36:cesm.exe           0000000000574CB2  lnd_comp_nuopc_mp         612  lnd_comp_nuopc.F90
36:libesmf.so         00002B665B209DEE  _ZN5ESMCI6FTable1     Unknown  Unknown
...
36:MPT ERROR: Rank 36(g:36) is aborting with error code 1001.
36:     Process ID: 58477, Host: r5i1n18, Program: /glade/scratch/samrabin/spinup_ctsm5.1.dev092_I1850Clm50BgcCrop_f19
-g17_pt2/bld/cesm.exe
36:     MPT Version: HPE MPT 2.22  03/31/20 15:59:10

That seems to be an actual error encountered during the FORTRAN read command, not a problem with any of the settings per se. Here's controlMod.F90 starting at line 325:
Code:
read(unitn, clm_inparm, iostat=ierr)
if (ierr /= 0) then
   call endrun(msg='ERROR reading clm_inparm namelist'//errMsg(sourcefile, __LINE__))
end if

As far as I know, I haven't made any changes to lnd_in, and it is present in the run directory. Any idea what the problem might be? Thanks in advance.

Here's the file: /glade/u/home/samrabin/cases_ctsm/spinup_ctsm5.1.dev092_I1850Clm50BgcCrop_f19-g17_pt2/CaseDocs/lnd_in
 

oleson

Keith Oleson
CSEG and Liaisons
Staff member
Puzzling. I cloned your case, did my own build, and it read in clm_inparm successfully but then got an error later when reading in the restart dataset:

ncd_inqvid: variable grainc_to_food_perharv is not on dataset
ERROR: Field missing from restart file: grainc_to_food_perharv

I then used your build of the case instead of my fresh build and got the same error you did.
Not sure what to make of this. I don't see anything wrong with lnd_in.
I'd suggest rebuilding the case but from the restart error I got it looks like you might have made changes to the code since your original build for this case, maybe.
Have you made any changes to these files since you started this simulation?
bld/CLMBuildNamelist.pm
bld/namelist_files/namelist_defaults_ctsm.xml
bld/namelist_files/namelist_definition_ctsm.xml
 

samrabin

Sam Rabin
Member
Huh. It turns out, yes, I did make changes to those files, as I was doing some development work on a different branch. But that shouldn't have affected this run unless I somehow rebuilt this case while on that different branch, right?

Just in case that's what happened, I've done a rebuild and resubmit; will update once I have a result.
 
Status
Not open for further replies.
Top