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

Unable to create new case for SCAM

csp

CSP
Member
Dear All,
I am unable to create the SCAM in CESM 2, using the following command:
Code:
./create_newcase --case test_scam_mandatory --compset FSCAM --res T42_T42 --user-mods-dir ../../components/cam/cime_config/usermods_dirs/scam_mandatory
it gives the following error:
Code:
 Compset longname is 2000_CAM60%SCAM_CLM50%SP_CICE%PRES_DOCN%DOM_SROF_SGLC_SWAV
Compset specification file is /home/csp/my_cesm_sandbox/components/cam//cime_config/config_compsets.xml
Automatically adding SIAC to compset
Automatically adding SESP to compset
Compset forcing is 1972-2004
ATM component is CAM cam6 physics:
LND component is clm5.0:Satellite phenology:
ICE component is Sea ICE (cice) model version 5 :prescribed cice
OCN component is DOCN   prescribed ocean mode
ROF component is Stub river component
GLC component is Stub glacier (land ice) component
WAV component is Stub wave component
IAC component is Stub iac component
ESP component is Stub external system processing (ESP) component
Pes     specification file is /home/csp/my_cesm_sandbox/components/cam//cime_config/config_pes.xml
Compset specific settings: name is RUN_STARTDATE and value is 1997-06-18
Compset specific settings: name is START_TOD and value is 84585
Compset specific settings: name is SSTICE_DATA_FILENAME and value is $DIN_LOC_ROOT/atm/cam/sst/sst_HadOIBl_bc_1x1_2000climo_c180511.nc
Compset specific settings: name is PTS_MODE and value is TRUE
Compset specific settings: name is PTS_LAT and value is 36.6
Compset specific settings: name is PTS_LON and value is 262.5
Machine is CSP
Pes setting: grid          is a%T42_l%T42_oi%T42_r%null_g%null_w%null_z%null_m%gx1v7 
Pes setting: compset       is 2000_CAM60%SCAM_CLM50%SP_CICE%PRES_DOCN%DOM_SROF_SGLC_SWAV_SIAC_SESP 
Pes setting: tasks       is {'NTASKS_ATM': -1, 'NTASKS_ICE': -1, 'NTASKS_CPL': -1, 'NTASKS_LND': -1, 'NTASKS_WAV': -1, 'NTASKS_ROF': -1, 'NTASKS_OCN': -1, 'NTASKS_GLC': -1} 
Pes setting: threads     is {'NTHRDS_ICE': 1, 'NTHRDS_ATM': 1, 'NTHRDS_ROF': 1, 'NTHRDS_LND': 1, 'NTHRDS_WAV': 1, 'NTHRDS_OCN': 1, 'NTHRDS_CPL': 1, 'NTHRDS_GLC': 1} 
Pes setting: rootpe      is {'ROOTPE_OCN': 0, 'ROOTPE_LND': 0, 'ROOTPE_ATM': 0, 'ROOTPE_ICE': 0, 'ROOTPE_WAV': 0, 'ROOTPE_CPL': 0, 'ROOTPE_ROF': 0, 'ROOTPE_GLC': 0} 
Pes setting: pstrid      is {} 
Pes other settings: {}
Pes comments: none
 Compset is: 2000_CAM60%SCAM_CLM50%SP_CICE%PRES_DOCN%DOM_SROF_SGLC_SWAV_SIAC_SESP 
 Grid is: a%T42_l%T42_oi%T42_r%null_g%null_w%null_z%null_m%gx1v7 
 Components in compset are: ['cam', 'clm', 'cice', 'docn', 'srof', 'sglc', 'swav', 'siac', 'sesp'] 

This is a CESM scientifically supported compset at this resolution.

No project info available
No charge_account info available, using value from PROJECT
cesm model version found: cesm2.2.0
Batch_system_type is none
 Creating Case directory /home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory
This component includes user_mods /home/csp/my_cesm_sandbox/components/cam//cime_config/usermods_dirs/scam_mandatory
Adding user mods directory /home/csp/my_cesm_sandbox/components/cam/cime_config/usermods_dirs/scam_mandatory
RUN: /home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory/shell_commands
FROM: /home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory
  stat: 2

  errput: /home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory/shell_commands: 1: Syntax error: "&" unexpected

Failed to setup case, removing /home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory
Use --debug to force me to keep caseroot
ERROR: Command: '/home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory/shell_commands' failed with error '/home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory/shell_commands: 1: Syntax error: "&" unexpected' from dir '/home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory'
 

katec

CSEG and Liaisons
Staff member
This line:
ERROR: Command: '/home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory/shell_commands' failed with error '/home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory/shell_commands: 1: Syntax error: "&" unexpected' from dir '/home/csp/my_cesm_sandbox/cime/scripts/test_scam_mandatory'

Suggests that there is a syntax error in your user-mods-dir shell_commands script. I'm not sure what version of CESM you are using, but the correct SCAM usermods directories are typically here: cesm/components/cam/cime_config/usermods_dirs . It might be helpful to compare the code in your user mod directory to the ones in the cam/cime_config area.
 

csp

CSP
Member
@katec I tried downloading on different machine directly from the github but the same exact error is found, not sure what's wrong in this.
 

katec

CSEG and Liaisons
Staff member
It seems like your current shell doesn't like the "|&" syntax in the SCAM shell commands script file. This can happen with some versions of Bash and some non-bash shells. Can you try a different shell or different version? Alternatively, you could remove the if statement logic around "./xmlchange --force CLM_FORCE_COLDSTART='on'" which you shouldn't need for CESM 2.2.
 
Top