CCPP and SCM Online Tutorial | Download and Build

Download and Build

Defining your workspace

The first step is to create an environment variable that contains the path to the directory in which you will build and run the SCM. 

Go to the directory in which you will build and run the SCM and run the command below substituting /path/to/my/build/and/run/directory with your actual directory name

cd /path/to/my/build/and/run/directory

Next, define an environment variable that contains the path

For bash (Bourne Shell), k:

export SCM_WORK=`pwd`
 

For C-Shell:

setenv SCM_WORK `pwd`

NOTE: The commands shown in this tutorial assume a bash-like shell. If you are using csh or tcsh, you will need to modify these commands accordingly. In most cases this only applies to setting environment variables as described above; if other differences occur they will be noted.

Download the Tutorial Files

Files that are used throughout the exercises in this tutorial are available to download. Down load these to the $SCM_WORK directory.

cd $SCM_WORK
wget https://github.com/NCAR/ccpp-scm/releases/download/v7.0.0/tutorial_files.tar.gz
tar -xvf tutorial_files.tar.gz
rm -f tutorial_files.tar.gz
NOTE: If your machine does not have wget, you can use the curl command instead:
curl -OL https://github.com/NCAR/ccpp-scm/releases/download/v7.0.0/tutorial_files.tar.gz

Determining how you will use the SCM 

There are two supported ways to build and run the Single Column Model: the standard build, and with a Docker container. Please follow one of the options below for information on these two methods: