get_case_env is a script in CIMEROOT/scripts/Tools.

$ ./get_case_env --help
usage: get_case_env [-c <case>]
get_case_env --help

    # Get the default CIME env 
    > ./get_case_env
    # Get the default CIME env and load it into your current shell env 
    > eval $(./get_case_env)
    # Get the CIME env for a different machine or compiler  
    > ./get_case_env -c SMS.f09_g16.X.mach_compiler
    # Get the CIME env for a different mpi (serial in this case)  
    > ./get_case_env -c SMS_Mmpi-serial.f09_g16.X
    # Same as above but also load it into current shell env 
    > eval $(./get_case_env -c SMS_Mmpi-serial.f09_g16.X)

Dump what the CIME environment would be for a case.

Only supports E3SM for now.

  -h, --help            show this help message and exit
  -d, --debug           Print debug information (very verbose) to file /home/titters/devel/E3SM/cime/master/scripts/Tools/get_case_env.log
  -v, --verbose         Add additional context (time and file) to log messages
  -s, --silent          Print only warnings and error messages
  -c CASE, --case CASE  The case for which you want the env. Default=SMS.f09_g16.X