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 after submit case

yangx2

xinyi yang
Member
Hi ,
I am still trying to port CESM2 to my university HPC. There is no errors wehen I executed ./case.build. After I executing ./case.submit, error pops up (shown below):
**************************************************************************************************************************
[yangx2@node-0005 mycase]$ ./case.submit
Setting resource.RLIMIT_STACK to -1 from (-1, -1)
Creating component namelists
Calling /home/yangx2/my_cesm_sandbox/cime/src/components/xcpl_comps/xatm/cime_config/buildnml
Calling /home/yangx2/my_cesm_sandbox/cime/src/components/xcpl_comps/xlnd/cime_config/buildnml
Calling /home/yangx2/my_cesm_sandbox/cime/src/components/xcpl_comps/xice/cime_config/buildnml
Calling /home/yangx2/my_cesm_sandbox/cime/src/components/xcpl_comps/xocn/cime_config/buildnml
Calling /home/yangx2/my_cesm_sandbox/cime/src/components/xcpl_comps/xrof/cime_config/buildnml
Calling /home/yangx2/my_cesm_sandbox/cime/src/components/xcpl_comps/xglc/cime_config/buildnml
Calling /home/yangx2/my_cesm_sandbox/cime/src/components/xcpl_comps/xwav/cime_config/buildnml
Calling /home/yangx2/my_cesm_sandbox/cime/src/components/stub_comps/sesp/cime_config/buildnml
Calling /home/yangx2/my_cesm_sandbox/cime/src/drivers/mct/cime_config/buildnml
NOTE: ignoring setting of glc2ice_rmapname=idmap in seq_maps.rc
Finished creating component namelists
Checking that inputdata is available as part of case submission
Setting resource.RLIMIT_STACK to -1 from (-1, -1)
Loading input file list: 'Buildconf/cpl.input_data_list'
Check case OK
submit_jobs case.run
Submit job case.run
ERROR: Unable to determine the correct command for batch submission.
**************************************************************************************************************************
I thought it should be related to setting in /home/.cime/config_batch.xml, so config_batch.xml is shown below:

==================================================================================
<?xml version="1.0"?>
<config_batch version="2.0">
<batch_system type="slurm" MACH="yangx2" >
<directives>
<directive default="/bin/bash" > -S {{ shell }} </directive>
</directives>
<queues>
<queue walltimemax="72:00:00" nodemin="1" nodemax="20" default="true">batch</queue>
</queues>
</batch_system>
</config_batch>
==================================================================================
Thanks for the help. And I am new to Linux and porting process. Hope you do not mind I am asking some stupid questions.

Best,
Skylar
 

yangx2

xinyi yang
Member
Is the ERROR related to the /home/.cime/config_mechines.xml file? Since in config_mechines.xml, I set (shown below):

**************************************************************************************************
<!-- BATCH_SYSTEM: batch system used on this machine supported values are: none, cobalt, lsf, pbs, slurm -->
<BATCH_SYSTEM>slurm</BATCH_SYSTEM>
<!-- CHARGE_ACCOUNT: A project or account number used for batch jobs. This is the actual project used for cost accounting set in the batch script (ex. #PBS -A charge_account). Will default to PROJECT if not set. can be overridden in environment or $HOME/.cime/config -->
<!--<CHARGE_ACCOUNT></CHARGE_ACCOUNT> -->
<!-- PROJECT_REQUIRED: Does this machine require a project to be specified to the batch system? See PROJECT above -->
<PROJECT_REQUIRED>False</PROJECT_REQUIRED>
**************************************************************************************************
 

jedwards

CSEG and Liaisons
Staff member
You need to add a line to config_batch.xml
<batch_submit>sbatch</batch_submit>

You can use the command ./preview_run to see the generated submit command.
 
Top