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

Where was the history files?

sfeng2@unl_edu

New Member
Dear CAM users:

I did a test run (see pages 23-24 of the User’s guide) at BLUEVISTA by using the script file ‘run-ibm.csh’ at “cam1/models/atm/cam/bld”. The CAM (cam3.1) with SOM were run for 61 days (nelapse= -61). The model run was successfully completed. However, I can not find the history files at ‘wrkdir’,’blddir’,’rundir’ and ‘cfgdir’ and all other directories under my account. I also can not find the history files at MSS (/$username/csm/$CASE/atm/hist, that is /sfeng/csm/camrun2/atm/hist). Where was the history files saved? Was there something I missed? Could the problem caused by the “runtype” (was set as initial run)?

I only find some new files (see the following) for restart run created at the ‘rundir’:

-rw-r--r-- 1 sfeng univ 16775020 May 14 15:17 camrun2.clm2.r.0000-03-03-00000
-rw-r--r-- 1 sfeng univ 38960 May 14 15:17 timing.3
-rw-r--r-- 1 sfeng univ 38960 May 14 15:17 timing.2
-rw-r--r-- 1 sfeng univ 38960 May 14 15:17 timing.1
-rw-r--r-- 1 sfeng univ 38960 May 14 15:17 timing.0
-rw-r--r-- 1 sfeng univ 120 May 14 15:17 spmdstats.003
-rw-r--r-- 1 sfeng univ 120 May 14 15:17 spmdstats.002
-rw-r--r-- 1 sfeng univ 120 May 14 15:17 spmdstats.001
-rw-r--r-- 1 sfeng univ 120 May 14 15:17 spmdstats.000
-rw-r--r-- 1 sfeng univ 65439536 May 14 15:17 camrun2.cam2.rh0.0000-03-03-00000
-rw-r--r-- 1 sfeng univ 64645052 May 14 15:17 camrun2.cam2.r.0000-03-03-00000


The script file I used is the ‘run-ibm.csh’ at “cam1/models/atm/cam/bld”. After customized the ‘camroot’ and ‘CSMDATA’, other setting of the ‘run-ibm.csh’ were as the following:

set case = camrun2
set runtype = initial
set nelapse = -61

set wrkdir = /ptmp/$LOGNAME
set blddir = $wrkdir/$case/bld
set rundir = $wrkdir/$case
set cfgdir = $camroot/models/atm/cam/bld

## Ensure that run and build directories exist
mkdir -p $rundir || echo "cannot create $rundir" && exit 1
mkdir -p $blddir || echo "cannot create $blddir" && exit 1

## If an executable doesn't exist, build one.
if ( ! -x $blddir/cam ) then
cd $blddir || echo "cd $blddir failed" && exit 1
$cfgdir/configure -ocn "som" || echo "configure failed" && exit 1
echo "building CAM in $blddir ..."
rm -f Depends
gmake -j4 >&! MAKE.out || echo "CAM build failed: see $blddir/MAKE.out" && exit 1
endif

## Create the namelist
cd $blddir || echo "cd $blddir failed" && exit 1
$cfgdir/build-namelist -s -case $case -runtype $runtype -o $rundir/namelist
-namelist "&camexp nelapse=$nelapse /" || echo "build-namelist failed" && exit 1

## Run CAM - use 'poe' to run on bluesky, 'mpirun.lsf' on bluevista
cd $rundir || echo "cd $rundir failed" && exit 1
echo "running CAM in $rundir"
#poe $blddir/cam < namelist || echo "CAM run failed" && exit 1
mpirun.lsf $blddir/cam < namelist || echo "CAM run failed" && exit 1

exit 0
 

rneale

Rich Neale
CAM Project Scientist
Staff member
By default CAM outputs a single history file .h0. for each month. In your working directory I see you have a .rh0. file which is a restart file with information required to calculate the .h0. fields at the end of the current month. Check out the mss directory using capitals for your user name /SFENG/csm/camrun2/atm/hist the h0 files for Jan and Feb should be there (as long as you didn't change MSS_IRT to 0).
 
Top