Skip to content

Files

This branch is 1103 commits ahead of, 4 commits behind CESM-Development/cime:master.

tools

usage: configure [-h] [-d] [-v] [-s] [--machine MACHINE]
                 [--machines-dir MACHINES_DIR]
                 [--macros-format {Makefile,CMake}] [--output-dir OUTPUT_DIR]
                 [--compiler COMPILER] [--mpilib MPILIB]

This script writes CIME build information to a directory. The pieces of
information that will be written include: 1. Machine-specific build settings
(i.e. the "Macros" file). 2. File-specific build settings (i.e. "Depends"
files). 3. 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.

optional arguments:
  -h, --help            show this help message and exit
  -d, --debug           Print debug information (very verbose) to file /home/j
                        edwards/cesm2_0_alpha/cime/tools/mapping/map_field/src
                        /configure.log
  -v, --verbose         Add additional context (time and file) to log messages
  -s, --silent          Print only warnings and error messages
  --machine MACHINE     The machine to create build information for.
  --machines-dir MACHINES_DIR
                        The machines directory to take build information from.
                        Overrides the CIME_MODEL environment variable, and
                        must be specified if that variable is not set.
  --macros-format {Makefile,CMake}
                        The format of Macros file to generate. If 'Makefile'
                        is passed in, a file called 'Macros.make' is
                        generated. If 'CMake' is passed in, a file called
                        'Macros.cmake' is generated. This option can be
                        specified multiple times to generate multiple files.
                        If not used at all, Macros generation is skipped. Note
                        that Depends files are currently always in Makefile
                        format, regardless of this option.
  --output-dir OUTPUT_DIR
                        The directory to write files to. If not specified,
                        defaults to the current working directory.
  --compiler COMPILER, -compiler COMPILER
                        Specify a compiler. To see list of supported compilers
                        for each machine, use the utility query_config in this
                        directory
  --mpilib MPILIB, -mpilib MPILIB
                        Specify the mpilib. To see list of supported mpilibs
                        for each machine, use the utility query_config in this
                        directory. The default is the first listing in MPILIBS
                        in config_machines.xml
  --clean               Remove old Macros and env files before attempting to
                        create new ones



It will create a Macros file in make or cmake format along with the module support
for the specified or default compiler.   It will also create two files
.env_mach_specific.csh
.env_mach_specific.sh

Before you try to run make you should source the file above appropriate for your shell
this will set the proper environment for supported systems which use modules.