<?xml version="1.0"?>
<file id="env_mach_specific.xml" version="2.0">
  <header>
    These variables control the machine dependent environment including
    the paths to compilers and libraries external to cime such as netcdf,
    environment variables for use in the running job should also be set	here.
    </header>
  <group id="compliant_values">
    <entry id="run_exe" value="${EXEROOT}/cesm.exe ">
      <type>char</type>
      <desc>executable name</desc>
    </entry>
    <entry id="run_misc_suffix" value=" &gt;&gt; cesm.log.$LID 2&gt;&amp;1 ">
      <type>char</type>
      <desc>redirect for job output</desc>
    </entry>
  </group>
  <module_system type="module">
    <init_path lang="perl">/glade/u/apps/ch/opt/lmod/7.5.3/lmod/lmod/init/perl</init_path>
    <init_path lang="python">/glade/u/apps/ch/opt/lmod/7.5.3/lmod/lmod/init/env_modules_python.py</init_path>
    <init_path lang="csh">/glade/u/apps/ch/opt/lmod/7.5.3/lmod/lmod/init/csh</init_path>
    <init_path lang="sh">/glade/u/apps/ch/opt/lmod/7.5.3/lmod/lmod/init/sh</init_path>
    <cmd_path lang="perl">/glade/u/apps/ch/opt/lmod/7.5.3/lmod/lmod/libexec/lmod perl</cmd_path>
    <cmd_path lang="python">/glade/u/apps/ch/opt/lmod/7.5.3/lmod/lmod/libexec/lmod python</cmd_path>
    <cmd_path lang="sh">module</cmd_path>
    <cmd_path lang="csh">module</cmd_path>
    <modules>
      <command name="purge"/>
      <command name="load">ncarenv/1.2</command>
    </modules>
    <modules compiler="intel">
      <command name="load">intel/17.0.1</command>
      <command name="load">esmf_libs</command>
      <command name="load">mkl</command>
    </modules>
    <modules compiler="pgi">
      <command name="load">pgi/17.9</command>
    </modules>
    <modules DEBUG="TRUE" compiler="intel" mpilib="!mpi-serial">
      <command name="load">esmf-7.1.0r-defio-mpi-g</command>
    </modules>
    <modules DEBUG="FALSE" compiler="intel" mpilib="!mpi-serial">
      <command name="load">esmf-7.1.0r-defio-mpi-O</command>
    </modules>
    <modules DEBUG="TRUE" compiler="intel" mpilib="mpi-serial">
      <command name="load">esmf-7.1.0r-ncdfio-uni-g</command>
    </modules>
    <modules DEBUG="FALSE" compiler="intel" mpilib="mpi-serial">
      <command name="load">esmf-7.1.0r-ncdfio-uni-O</command>
    </modules>
    <modules compiler="gnu">
      <command name="load">gnu/7.3.0</command>
      <command name="load">openblas/0.2.20</command>
    </modules>
    <modules compiler="gnu" mpilib="mpt">
      <command name="load">mpt/2.16</command>
      <command name="load">netcdf-mpi/4.6.1</command>
    </modules>
    <modules compiler="intel" mpilib="mpt">
      <command name="load">mpt/2.19</command>
      <command name="load">netcdf-mpi/4.6.1</command>
      <command name="load">pnetcdf/1.11.0</command>
    </modules>
    <modules compiler="pgi" mpilib="mpt">
      <command name="load">mpt/2.19</command>
      <command name="load">netcdf-mpi/4.6.1</command>
      <command name="load">pnetcdf/1.11.0</command>
    </modules>
    <modules mpilib="openmpi">
      <command name="load">openmpi/3.0.1</command>
      <command name="load">netcdf/4.6.1</command>
    </modules>
    <modules>
      <command name="load">ncarcompilers/0.4.1</command>
    </modules>
    <modules compiler="gnu" mpilib="mpi-serial">
      <command name="load">netcdf/4.6.1</command>
    </modules>
    <modules compiler="pgi" mpilib="mpi-serial">
      <command name="load">netcdf/4.4.1.1</command>
    </modules>
    <modules compiler="intel" mpilib="mpi-serial">
      <command name="load">netcdf/4.5.0</command>
    </modules>
  </module_system>
  <environment_variables>
    <env name="OMP_STACKSIZE">256M</env>
    <env name="TMPDIR">/glade/scratch/$USER</env>
    <env name="MPI_TYPE_DEPTH">16</env>
    <env name="MPI_IB_CONGESTED">1</env>
    <env name="MPI_USE_ARRAY"/>
  </environment_variables>
  <environment_variables unit_testing="true">
    <env name="MPI_USE_ARRAY">false</env>
  </environment_variables>
  <environment_variables queue="share">
    <env name="TMPDIR">/glade/scratch/$USER</env>
    <env name="MPI_USE_ARRAY">false</env>
  </environment_variables>
  <resource_limits>
    <resource name="RLIMIT_STACK">-1</resource>
  </resource_limits>
  <mpirun mpilib="default">
    <executable>mpiexec_mpt</executable>
    <arguments>
      <arg name="labelstdout">-p "%g:"</arg>
      <arg name="num_tasks"> -np {{ total_tasks }}</arg>
      <arg name="zthreadplacement"> omplace -tm open64 </arg>
    </arguments>
  </mpirun>
  <mpirun mpilib="mpt" queue="share">
    <executable>mpirun `hostname`</executable>
    <arguments>
      <arg name="anum_tasks"> -np {{ total_tasks }}</arg>
      <arg name="zthreadplacement"> omplace -tm open64 </arg>
    </arguments>
  </mpirun>
  <mpirun mpilib="openmpi">
    <executable>mpirun</executable>
    <arguments>
      <arg name="anum_tasks"> -np {{ total_tasks }}</arg>
    </arguments>
  </mpirun>
  <mpirun mpilib="default" unit_testing="true">
    <executable>/opt/sgi/mpt/mpt-2.15/bin/mpirun $ENV{UNIT_TEST_HOST} -np 1 </executable>
  </mpirun>
</file>
