UFS Medium-Range Weather (MRW) Practical Session Guide | Session 1: Set Up and Run the Model > 2. Set up the environment

Prior to building the model, the environment for CIME needs to be set up. This requires five environment variables: 

UFS_INPUT: Path to location of input data. A directory named ufs_inputdata should be  located under this directory. This can be in a shared location so multiple users  can use the data. 
UFS_SCRATCH: Writable directory where output for each case will go. 
UFS_DRIVER: Default is nems, do not change. 
CIME_MODEL: Default is ufs, do not change. 
PROJECT: Account code on machine

Enter the following commands on Cheyenne.  You may need to create a directory on /glade/scratch.

cd /glade/scratch/$USER

If you see something like

-bash: cd: /glade/scratch/$USER: No such file or directory

Then

cd /glade/scratch/
mkdir $USER

This directory should persist throughout the tutorial.

For bash:

export UFS_INPUT=/glade/p/ral/jntp/UFS_training
export UFS_SCRATCH=/glade/scratch/$USER/UFS_training
export UFS_DRIVER=nems
export CIME_MODEL=ufs  
export PROJECT=NJNT0007
 
For csh:
setenv UFS_INPUT /glade/p/ral/jntp/UFS_training
setenv UFS_SCRATCH /glade/scratch/$USER/UFS_training
setenv UFS_DRIVER nems
setenv CIME_MODEL ufs
setenv PROJECT NJNT0007

Note:  You'll need to set the environments (export/setenv) each time you log in to do work with the MR-Weather-App.  You can add these lines to your .bashrc/.cshrc file (found in your home directory) or put in a shell script that you can source each time you log in to cheyenne.  Some exercises in this practical session involve loading different modules or versions of modules and/or editing namelists; you can use this page to reset back to the proper build/run environment for the baseline case.