How to make running cesm3_0_beta08 on another machine

nuvolet

Toni Viudez
Member
What version of the code are you using?

cesm3_0_beta08

Have you made any changes to files in the source tree?

No

Describe every step you took leading up to the problem:
I recently downloaded CESM3 beta08 on our systems and am beginning to run some tests.
When I was using CESM2.2.0, I configured our machine by modifying ~/CESM2.2/cime/config/cesm/machines/config_machines.xml and ~/CESM2.2/cime_config/config_pes.xml, which allowed CESM to recognize our system.
With CESM3 beta08, I noticed that there are now multiple machine configuration files under ~/CESM3/cesm3_0_beta08/ccs_config/machines/. I modified config_machines.xml as before, but the model still does not recognize our machine.

Describe your problem or question:
Is there any documentation or guidance on how to properly add or configure a custom machine in this new version?
Thank you in advance for your help.
Best regards,
 

slevis

Moderator
Staff member
I'm not an expert (or even good) at the porting exercise, so I'm not offering to help; however, I suspect that the process hasn't changed much (if at all) from previous versions. So until someone chimes in with a more specific suggestion, I recommend that you follow any existing porting instructions that you have found.
 
Vote Upvote 0 Downvote

fischer

CSEG and Liaisons
Staff member
Hi Toni,

There's currently no documentation and our porting guru is retired. But I'll try to help. You'll need to make a new directory for your machine in ~/CESM3/cesm3_0_beta08/ccs_config/machines/YOUR_MACHINE_NAME. The files in that directory you'll edit the same way as before. Then in ~/CESM3/cesm3_0_beta08/ccs_config/machines/config_machines.xml, you'll need to add an entry for your machine name. Fingers crossed this will work for you.

Chris
 
Vote Upvote 0 Downvote

nuvolet

Toni Viudez
Member
Hi Toni,

There's currently no documentation and our porting guru is retired. But I'll try to help. You'll need to make a new directory for your machine in ~/CESM3/cesm3_0_beta08/ccs_config/machines/YOUR_MACHINE_NAME. The files in that directory you'll edit the same way as before. Then in ~/CESM3/cesm3_0_beta08/ccs_config/machines/config_machines.xml, you'll need to add an entry for your machine name. Fingers crossed this will work for you.

Chris
Hi Fischer and Slevis,

Thanks for comments/suggestions.

I pretty much followed Fischer's suggestion and at least now the machine can be recognize.
Nevertheless, after including the path for all the elements in the config_machine.xml and preparing test run, I go this error:

Code:
Running cam.case_setup.py
ERROR: Command: 'python ~/CESM3/cesm3_0_beta08/components/cam//cime_config/cam.case_setup.py ~/CESM3/cesm3_0_beta08/components/cam/ ~/CESM3/cases/test_cam7 False' failed with error 'File "~/CESM3/cesm3_0_beta08/components/cam//cime_config/cam.case_setup.py", line 25
    raise SystemExit(f"Incorrect call to {sys.argv[0]}, need CAM root and case root")
                                                                                   ^
SyntaxError: invalid syntax' from dir '~/CESM3/cases/test_cam7'
 
|------------------> modifying user_nl_cam
|------------------> ./case.build
 
Building case in directory ~/CESM3/cases/test_cam7
sharedlib_only is False
model_only is False
Generating component namelists as part of build
  2026-07-28 08:10:16 atm
Create namelist for component cam
   Calling ~/CESM3/cesm3_0_beta08/components/cam//cime_config/buildnml
     ...calling cam buildcpp to set build time options
ERROR: Command ~/CESM3/cesm3_0_beta08/components/cam/bld/build-namelist -ntasks 48 -csmdata ~/CESM3/CESM_input_data -infile ~/CESM3/cases/test_cam7/Buildconf/camconf/namelist -start_ymd 20080101 -ignore_ic_date -use_case hist_trop_strat_nudged_cam6 -inputdata ~/CESM3/cases/test_cam7/Buildconf/cam.input_data_list -namelist " &atmexp /"  -cmeps failed rc=255
out=
err=Smartmatch is experimental at ~/CESM3/cesm3_0_beta08/components/cam/bld/build-namelist line 2340.
CAM build-namelist - ERROR: Invalid namelist variable in '-infile' ~/CESM3/cases/test_cam7/Buildconf/camconf/namelist.
 ERROR: in _validate_pair (package Build::NamelistDefinition): Variable name clim_soilw_file not found in ~/CESM3/cesm3_0_beta08/components/cam/bld/namelist_files/namelist_definition.xml
|------------------> ./case.submit
 
  2026-07-28 08:10:17 atm
Create namelist for component cam
   Calling ~/CESM3/cesm3_0_beta08/components/cam//cime_config/buildnml
ERROR: Command ~/CESM3/cesm3_0_beta08/components/cam/bld/build-namelist -ntasks 48 -csmdata ~/CESM3/CESM_input_data -infile ~/CESM3/cases/test_cam7/Buildconf/camconf/namelist -start_ymd 20080101 -ignore_ic_date -use_case hist_trop_strat_nudged_cam6 -inputdata ~/CESM3/cases/test_cam7/Buildconf/cam.input_data_list -namelist " &atmexp /"  -cmeps failed rc=255
out=
err=Smartmatch is experimental at ~/CESM3/cesm3_0_beta08/components/cam/bld/build-namelist line 2340.
CAM build-namelist - ERROR: Invalid namelist variable in '-infile' ~/CESM3/cases/test_cam7/Buildconf/camconf/namelist.
 ERROR: in _validate_pair (package Build::NamelistDefinition): Variable name depvel_file not found in ~/CESM3/cesm3_0_beta08/components/cam/bld/namelist_files/namelist_definition.xml
|------------------> Run completed
 
Vote Upvote 0 Downvote

fischer

CSEG and Liaisons
Staff member
Hi Toni,

It looks like you have a configuration issue in the CAM model. Can you tell me what case you're trying to run? Also, attach any machine configuration files you've modified.

Also can you try doing the following, it'll run a really simple test.

./create_test SMS_Ld5.f10_f10_mg37.1850_DATM%CRUJRA2024b_SLND_SICE_SOCN_SROF_SGLC_SWAV_SESP.YOURMACHINENAME_COMPILERYOURUSING

So on our system(derecho) using intel compiler the command looks like.
./create_test SMS_Ld5.f10_f10_mg37.1850_DATM%CRUJRA2024b_SLND_SICE_SOCN_SROF_SGLC_SWAV_SESP.derecho_intel

Thanks
Chris
 
Vote Upvote 0 Downvote

nuvolet

Toni Viudez
Member
Hi Toni,

It looks like you have a configuration issue in the CAM model. Can you tell me what case you're trying to run? Also, attach any machine configuration files you've modified.

Also can you try doing the following, it'll run a really simple test.

./create_test SMS_Ld5.f10_f10_mg37.1850_DATM%CRUJRA2024b_SLND_SICE_SOCN_SROF_SGLC_SWAV_SESP.YOURMACHINENAME_COMPILERYOURUSING

So on our system(derecho) using intel compiler the command looks like.
./create_test SMS_Ld5.f10_f10_mg37.1850_DATM%CRUJRA2024b_SLND_SICE_SOCN_SROF_SGLC_SWAV_SESP.derecho_intel

Thanks
Chris
Hi Chris,

I try to run a test using ERA5 reanalysis like this:

./create_newcase --case ~CESM3/cases/$casename --compset FCnudged --machine x86_64 --res f09_f09_mg17 --run-unsupported

I will try run in our machines that.
Thanks

Toni
 
Vote Upvote 0 Downvote
Back
Top