CIME.BuildTools package
Submodules
CIME.BuildTools.configure module
This script writes CIME build information to a directory.
The pieces of information that will be written include:
Machine-specific build settings (i.e. the “Macros” file).
File-specific build settings (i.e. “Depends” files).
Environment variable loads (i.e. the env_mach_specific files).
The .env_mach_specific.sh and .env_mach_specific.csh files are specific to a given compiler, MPI library, and DEBUG setting. By default, these will be the machine’s default compiler, the machine’s default MPI library, and FALSE, respectively. These can be changed by setting the environment variables COMPILER, MPILIB, and DEBUG, respectively.
- class CIME.BuildTools.configure.FakeCase(compiler, mpilib, debug, comp_interface, threading=False)[source]
Bases:
object
- CIME.BuildTools.configure.configure(machobj, output_dir, macros_format, compiler, mpilib, debug, comp_interface, sysos, unit_testing=False, noenv=False, threaded=False, extra_machines_dir=None)[source]
Add Macros, Depends, and env_mach_specific files to a directory.
Arguments: machobj - Machines argument for this machine. output_dir - Directory in which to place output. macros_format - Container containing the string ‘Makefile’ to produce
Makefile Macros output, and/or ‘CMake’ for CMake output.
compiler - String containing the compiler vendor to configure for. mpilib - String containing the MPI implementation to configure for. debug - Boolean specifying whether debugging options are enabled. unit_testing - Boolean specifying whether we’re running unit tests (as
opposed to a system run)
- extra_machines_dir - String giving path to an additional directory that will be
searched for cmake_macros.