Mercurial > repos > climate > cesm
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/create_config_machines.sh Tue Jun 15 09:39:23 2021 +0000 @@ -0,0 +1,56 @@ +#!/usr/bin/env bash + +GALAXY_SLOTS=$1 + +echo "====================================================================" +echo " Create Config machine for CESM " +echo " Tool will be running with $GALAXY_SLOTS processors (MPI tasks) " +echo "====================================================================" + + +cat > config_machines_galaxy.xml << EOF +<?xml version="1.0"?> +<config_machines> + <machine MACH="galaxy"> + <DESC> + VM + x4 CPUs + Gold Centos 7 + </DESC> + <NODENAME_REGEX>UNSET</NODENAME_REGEX> + <OS>LINUX</OS> + <PROXY>UNSET</PROXY> + <COMPILERS>gnu</COMPILERS> + <MPILIBS>mpich</MPILIBS> + <SAVE_TIMING_DIR>UNSET</SAVE_TIMING_DIR> + <CIME_OUTPUT_ROOT>\$ENV{HOME}/work</CIME_OUTPUT_ROOT> + <DIN_LOC_ROOT>\$ENV{HOME}/inputdata</DIN_LOC_ROOT> + <DIN_LOC_ROOT_CLMFORC>\$ENV{HOME}/inputdata/atm/datm7</DIN_LOC_ROOT_CLMFORC> + <DOUT_S_ROOT>\$ENV{HOME}/archive/\$CASE</DOUT_S_ROOT> + <BASELINE_ROOT>UNSET</BASELINE_ROOT> + <CCSM_CPRNC>UNSET</CCSM_CPRNC> + <GMAKE>make</GMAKE> + <GMAKE_J>$GALAXY_SLOTS</GMAKE_J> + <BATCH_SYSTEM>none</BATCH_SYSTEM> + <SUPPORTED_BY>nobody</SUPPORTED_BY> + <MAX_TASKS_PER_NODE>$GALAXY_SLOTS</MAX_TASKS_PER_NODE> + <MAX_MPITASKS_PER_NODE>$GALAXY_SLOTS</MAX_MPITASKS_PER_NODE> + <PROJECT_REQUIRED>FALSE</PROJECT_REQUIRED> + <mpirun mpilib="default"> + <executable>mpiexec</executable> + <arguments> + <arg name="anum_tasks"> -np \$TOTALPES</arg> + </arguments> + </mpirun> + <module_system type="none"/> + <environment_variables> + <env name="KMP_STACKSIZE">64M</env> + </environment_variables> + <resource_limits> + <resource name="RLIMIT_STACK">-1</resource> + </resource_limits> + </machine> +</config_machines> +EOF + +echo "Configuration machine created."