If the executables for your platform are not available from the CMAS web site, you will need to compile SMOKE for your system. You may also need to compile SMOKE if you would like to modify the source code. The following steps will help get you set up to compile SMOKE.
Install SMOKE as described in Section 12.3, “Installing SMOKE”.
Download and compile the I/O API library from the I/O API home page. The I/O API can be installed in $SMK_HOME
/subsys/ioapi
[1] Create symbolic link to the IOAPI source code directory (ioapi) to the
directory.
$SMK_HOME
/subsys/ioapi/ioapi/
[2] Create symbolic link to the IOAPI libioapi.a
library file and utility programs (datshift, jul2greg, greg2jul and so on
) to the
directory.
$SMK_HOME
/subsys/ioapi/Linux2_x86_64ifort/
After the appropriate libraries and compile options have been installed, you can source an Assigns file to ensure that your system is configured properly.
cd
$SMK_HOME
/subsys/smoke/assigns
source
ASSIGNS.nctox.cmaq.cb05_soa.us12-nc
You should now be ready to compile the SMOKE programs. Change directories to
.
$SMKOOT
/src/
At the UNIX prompt, type:
make
After running the Makeall
script, you should check the $SMK_BIN
directory to check the executables.
Once you have compiled the SMOKE programs, you can run the SMOKE example scripts following the instructions in Section 4.3, “Running the SMOKE test case”.