Porting CESM 3.0

Budin

Pakistan@123
New Member
I am trying to clone CESM 3.0, I have followed the below steps
Start Clonning
1) swelab@swelab:~$ git clone GitHub - ESCOMP/CESM: The Community Earth System Model ~/CESM

2) swelab@swelab:~/CESM$ ./bin/git-fleximod update

3) mkdir -p /home/swelab/CESM/scratch

4) ./create_newcase --case /home/swelab/CESM/scratch/SH3 --mach ubuntu-latest --compset I1850Clm50Sp --res f10_f10_mg37 --run-unsupported

5) ./case.setup

6) Install compilers, OpenMPI and ESMF (If necessary)

7) Edit NETCDF

8) ./case.build

When I run ./case.build I am getting configuration and porting error, I looked for the editing guide of the config_machines.xml and tried to edit the config_machine.xml on my side. However, I'm encountering an error, which I am not familiar with. Can you please help me with the error, whether the editing of config_machines.xml is correct for <config_machines version="3.0">? Below is the screenshot of the error and the config_machine.xml in txt.
It gives me an error: Element 'BASELINE_ROOT": This element is not expected. Expected is one of ( Din_LOC_ROOT_CLMFORC, DOUT-S_ROOT) but when I edit, it still gives an error. not only for BASELINE_Root but also for next lines like CCSM_CPRNC and GMAKE





Describe your problem or question:
 

Attachments

jedwards

CSEG and Liaisons
Staff member
DOUT_S_ROOT is a required field that you don't have. It should be located prior to the BASELINE_ROOT.
 

Budin

Pakistan@123
New Member
DOUT_S_ROOT is a required field that you don't have. It should be located prior to the BASELINE_ROOT.
Hello Jedwards,
Thank you for answering my previous question. I have resolved the error; however, I am encountering another issue. I have shared a screenshot of the error and have edited the config_machines.xml file accordingly. Could you please review the file and guide me on any further corrections that might be necessary?
Additionally, as I have mentioned in the previous question, I have edited the default (config_machines.xml) as shown in the screenshot (earlier question) and have followed the template available at {5. Defining the machine — CIME master documentation}. Please let me know if this is the correct approach for editing the config_machines.xml file for CESM 3.0.
Looking forward to your response.
 

Attachments

jedwards

CSEG and Liaisons
Staff member
the mpirun element is the parent of a nest of elements. See machine derecho for an example:

Code:
<mpirun mpilib="default">                                                                                                                               
      <executable>mpibind</executable>                                                                                                                       
      <arguments>                                                                                                                                           
        <arg name="label"> --label</arg>                                                                                                                     
        <arg name="buffer"> --line-buffer</arg>                                                                                                             
        <arg name="separator"> -- </arg>                                                                                                                     
      </arguments>                                                                                                                                           
   </mpirun>
Do you look at the other machines that are defined? I think that would answer most questions.
 
Back
Top