CESM: Difference between revisions

952 bytes removed ,  4 months ago
updated config_machines.xml file; adjust for local install
(update remaining config_machine.xml files)
(updated config_machines.xml file; adjust for local install)
Line 5: Line 5:
The below configuration files and commands are designed for a local installation of CESM 2.1.5:
The below configuration files and commands are designed for a local installation of CESM 2.1.5:


Before making the adaptations as described below, please [https://www.cesm.ucar.edu/models/cesm2/download download CESM 2.1.5 from the CESM developers].
Before making the adaptations as described below, please [https://www.cesm.ucar.edu/models/cesm2/download download CESM 2.1.5 from the CESM developers] in your local directory.


==Local machine file==
==Local machine file==
Line 27: Line 27:
     <OS>LINUX</OS>
     <OS>LINUX</OS>
     <COMPILERS>intel,gnu</COMPILERS>
     <COMPILERS>intel,gnu</COMPILERS>
     <MPILIBS>openmpi,intelmpi</MPILIBS>
     <MPILIBS>openmpi</MPILIBS>


     <PROJECT>def-EDIT_THIS</PROJECT>
     <PROJECT>def-EDIT_THIS</PROJECT>
Line 44: Line 44:
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>


     <mpirun mpilib="intelmpi">
     <mpirun mpilib="openmpi">
       <executable>mpirun</executable>
       <executable>mpirun</executable>
       <arguments>
       <arguments>
Line 69: Line 69:
<command name="load">cmake/3.27.7</command>
<command name="load">cmake/3.27.7</command>
       </modules>
       </modules>
       <modules mpilib="intelmpi">
       <modules mpilib="openmpi">
         <command name="load">openmpi/4.1.5</command>
         <command name="load">openmpi/4.1.5</command>
         <command name="load">hdf5-mpi/1.14.2</command>
         <command name="load">hdf5-mpi/1.14.2</command>
Line 95: Line 95:
     </resource_limits>
     </resource_limits>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 118: Line 113:
     <OS>LINUX</OS>
     <OS>LINUX</OS>
     <COMPILERS>intel,gnu</COMPILERS>
     <COMPILERS>intel,gnu</COMPILERS>
     <MPILIBS>openmpi,intelmpi</MPILIBS>
     <MPILIBS>openmpi</MPILIBS>


     <PROJECT>def-EDIT_THIS</PROJECT>
     <PROJECT>def-EDIT_THIS</PROJECT>
Line 135: Line 130:
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>


     <mpirun mpilib="intelmpi">
     <mpirun mpilib="openmpi">
       <executable>mpirun</executable>
       <executable>mpirun</executable>
       <arguments>
       <arguments>
Line 159: Line 154:
<command name="load">cmake/3.27.7</command>
<command name="load">cmake/3.27.7</command>
       </modules>
       </modules>
       <modules mpilib="intelmpi">
       <modules mpilib="openmpi">
         <command name="load">openmpi/4.1.5</command>
         <command name="load">openmpi/4.1.5</command>
         <command name="load">hdf5-mpi/1.14.2</command>
         <command name="load">hdf5-mpi/1.14.2</command>
Line 185: Line 180:
     </resource_limits>
     </resource_limits>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 208: Line 198:
     <OS>LINUX</OS>
     <OS>LINUX</OS>
     <COMPILERS>intel,gnu</COMPILERS>
     <COMPILERS>intel,gnu</COMPILERS>
     <MPILIBS>openmpi,intelmpi</MPILIBS>
     <MPILIBS>openmpi</MPILIBS>


     <PROJECT>def-EDIT_THIS</PROJECT>
     <PROJECT>def-EDIT_THIS</PROJECT>
Line 225: Line 215:
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>


     <mpirun mpilib="intelmpi">
     <mpirun mpilib="openmpi">
       <executable>mpirun</executable>
       <executable>mpirun</executable>
       <arguments>
       <arguments>
Line 249: Line 239:
<command name="load">cmake/3.27.7</command>
<command name="load">cmake/3.27.7</command>
       </modules>
       </modules>
       <modules mpilib="intelmpi">
       <modules mpilib="openmpi">
         <command name="load">openmpi/4.1.5</command>
         <command name="load">openmpi/4.1.5</command>
         <command name="load">hdf5-mpi/1.14.2</command>
         <command name="load">hdf5-mpi/1.14.2</command>
Line 275: Line 265:
     </resource_limits>
     </resource_limits>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 298: Line 283:
     <OS>LINUX</OS>
     <OS>LINUX</OS>
     <COMPILERS>intel,gnu</COMPILERS>
     <COMPILERS>intel,gnu</COMPILERS>
     <MPILIBS>openmpi,intelmpi</MPILIBS>
     <MPILIBS>openmpi</MPILIBS>


     <PROJECT>def-EDIT_THIS</PROJECT>
     <PROJECT>def-EDIT_THIS</PROJECT>
Line 315: Line 300:
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>


     <mpirun mpilib="intelmpi">
     <mpirun mpilib="openmpi">
       <executable>mpirun</executable>
       <executable>mpirun</executable>
       <arguments>
       <arguments>
Line 339: Line 324:
<command name="load">cmake/3.27.7</command>
<command name="load">cmake/3.27.7</command>
       </modules>
       </modules>
       <modules mpilib="intelmpi">
       <modules mpilib="openmpi">
         <command name="load">openmpi/4.1.5</command>
         <command name="load">openmpi/4.1.5</command>
         <command name="load">hdf5-mpi/1.14.2</command>
         <command name="load">hdf5-mpi/1.14.2</command>
Line 365: Line 350:
     </resource_limits>
     </resource_limits>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 388: Line 368:
     <OS>LINUX</OS>
     <OS>LINUX</OS>
     <COMPILERS>intel,gnu</COMPILERS>
     <COMPILERS>intel,gnu</COMPILERS>
     <MPILIBS>openmpi,intelmpi</MPILIBS>
     <MPILIBS>openmpi</MPILIBS>


     <PROJECT>def-EDIT_THIS</PROJECT>
     <PROJECT>def-EDIT_THIS</PROJECT>
Line 405: Line 385:
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>
     <PROJECT_REQUIRED>TRUE</PROJECT_REQUIRED>


     <mpirun mpilib="intelmpi">
     <mpirun mpilib="openmpi">
       <executable>mpirun</executable>
       <executable>mpirun</executable>
       <arguments>
       <arguments>
Line 429: Line 409:
<command name="load">cmake/3.27.7</command>
<command name="load">cmake/3.27.7</command>
       </modules>
       </modules>
       <modules mpilib="intelmpi">
       <modules mpilib="openmpi">
         <command name="load">openmpi/4.1.5</command>
         <command name="load">openmpi/4.1.5</command>
         <command name="load">hdf5-mpi/1.14.2</command>
         <command name="load">hdf5-mpi/1.14.2</command>
Line 455: Line 435:
     </resource_limits>
     </resource_limits>
   </machine>
   </machine>
  <default_run_suffix>
    <default_run_exe>${EXEROOT}/cesm.exe </default_run_exe>
    <default_run_misc_suffix> >> cesm.log.$LID 2>&amp;1 </default_run_misc_suffix>
  </default_run_suffix>
</config_machines>
</config_machines>
}}
}}
Line 470: Line 445:
{{Command2
{{Command2
|prompt=[name@server ~]$
|prompt=[name@server ~]$
|xmllint --noout --schema $EBROOTCESM/cime/config/xml_schemas/config_machines.xsd ~/.cime/config_machines.xml
|xmllint --noout --schema /path/to/CESM/cime/config/xml_schemas/config_machines.xsd ~/.cime/config_machines.xml
|result=
|result=
/home/name/.cime/config_machines.xml validates
/home/name/.cime/config_machines.xml validates
Line 490: Line 465:
{{Command2
{{Command2
|prompt=[name@server ~]$
|prompt=[name@server ~]$
|less $EBROOTCESM/cime/config/xml_schemas/config_machines_template.xml
|less /path/to/CESM/cime/config/xml_schemas/config_machines_template.xml
}}
}}
</li>
</li>
Line 528: Line 503:
{{Command2
{{Command2
|prompt=[name@server ~]$
|prompt=[name@server ~]$
|xmllint --noout --schema $EBROOTCESM/cime/config/xml_schemas/config_batch.xsd ~/.cime/config_batch.xml
|xmllint --noout --schema /path/to/CESM/cime/config/xml_schemas/config_batch.xsd ~/.cime/config_batch.xml
|result=
|result=
/home/name/.cime/config_batch.xml validates
/home/name/.cime/config_batch.xml validates
Line 541: Line 516:
{{Command2
{{Command2
|prompt=[name@server ~]$
|prompt=[name@server ~]$
|create_newcase --case test_case --compset IHistClm50Bgc --res f19_g17
|/path/to/CESM//cime/scripts/create_newcase --case test_case --compset IHistClm50Bgc --res f19_g17
}}
}}


cc_staff
147

edits