comparison create_config_machines.sh @ 0:7a7ba86e95a4 draft default tip

"planemo upload for repository https://github.com/ESCOMP/CESM commit 5c969e494841237de0b2301520d9321672cc9f5b"
author climate
date Tue, 15 Jun 2021 09:39:23 +0000
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:7a7ba86e95a4
1 #!/usr/bin/env bash
2
3 GALAXY_SLOTS=$1
4
5 echo "===================================================================="
6 echo " Create Config machine for CESM "
7 echo " Tool will be running with $GALAXY_SLOTS processors (MPI tasks) "
8 echo "===================================================================="
9
10
11 cat > config_machines_galaxy.xml << EOF
12 <?xml version="1.0"?>
13 <config_machines>
14 <machine MACH="galaxy">
15 <DESC>
16 VM
17 x4 CPUs
18 Gold Centos 7
19 </DESC>
20 <NODENAME_REGEX>UNSET</NODENAME_REGEX>
21 <OS>LINUX</OS>
22 <PROXY>UNSET</PROXY>
23 <COMPILERS>gnu</COMPILERS>
24 <MPILIBS>mpich</MPILIBS>
25 <SAVE_TIMING_DIR>UNSET</SAVE_TIMING_DIR>
26 <CIME_OUTPUT_ROOT>\$ENV{HOME}/work</CIME_OUTPUT_ROOT>
27 <DIN_LOC_ROOT>\$ENV{HOME}/inputdata</DIN_LOC_ROOT>
28 <DIN_LOC_ROOT_CLMFORC>\$ENV{HOME}/inputdata/atm/datm7</DIN_LOC_ROOT_CLMFORC>
29 <DOUT_S_ROOT>\$ENV{HOME}/archive/\$CASE</DOUT_S_ROOT>
30 <BASELINE_ROOT>UNSET</BASELINE_ROOT>
31 <CCSM_CPRNC>UNSET</CCSM_CPRNC>
32 <GMAKE>make</GMAKE>
33 <GMAKE_J>$GALAXY_SLOTS</GMAKE_J>
34 <BATCH_SYSTEM>none</BATCH_SYSTEM>
35 <SUPPORTED_BY>nobody</SUPPORTED_BY>
36 <MAX_TASKS_PER_NODE>$GALAXY_SLOTS</MAX_TASKS_PER_NODE>
37 <MAX_MPITASKS_PER_NODE>$GALAXY_SLOTS</MAX_MPITASKS_PER_NODE>
38 <PROJECT_REQUIRED>FALSE</PROJECT_REQUIRED>
39 <mpirun mpilib="default">
40 <executable>mpiexec</executable>
41 <arguments>
42 <arg name="anum_tasks"> -np \$TOTALPES</arg>
43 </arguments>
44 </mpirun>
45 <module_system type="none"/>
46 <environment_variables>
47 <env name="KMP_STACKSIZE">64M</env>
48 </environment_variables>
49 <resource_limits>
50 <resource name="RLIMIT_STACK">-1</resource>
51 </resource_limits>
52 </machine>
53 </config_machines>
54 EOF
55
56 echo "Configuration machine created."