Difference between revisions of "Downloading and compiling SCHISM and utilities"

From ccrmwiki
Jump to: navigation, search
Line 6: Line 6:
 
Upon untarring the source code bundle, you'll find two directories that are needed for gnu make.
 
Upon untarring the source code bundle, you'll find two directories that are needed for gnu make.
  
*src*
+
*src
  
*mk*
+
Makefile is the main makefile, and in general you should NOT change this file.
 +
 
 +
*mk
 +
 
 +
Make.defs.xxx define some environment variables used in src/Makefile, and 'xxx' refer to various clusters around the world. You should copy one of these to Make.defs.local; e.g., if you MPI compiler is Intel based ifort, you can:
 +
 
 +
cp Make.defs.tsunami Make.defs.local
 +
 
 +
Then you need to edit Make.defs.local for e.g. the path names on your local cluster, and turn on/off modules. SCHISM requires few external libraries including netcdf.
 +
 
 +
After this is done:
 +
 
 +
cd ../src
 +
make clean
 +
make
  
 
==[http://ccrm.vims.edu/w/index.php/CMake_Build_System '''CMake Build System (v3.2 and up)''']==
 
==[http://ccrm.vims.edu/w/index.php/CMake_Build_System '''CMake Build System (v3.2 and up)''']==

Revision as of 19:00, 3 May 2015

You can download SCHISM at SCHISM site.

There are currently several build systems being used to build SCHISM, including GNU Make and CMake. The traditional GNU Makefiles are documented below, and are less powerful than CMake.

GNU Make

Upon untarring the source code bundle, you'll find two directories that are needed for gnu make.

  • src

Makefile is the main makefile, and in general you should NOT change this file.

  • mk

Make.defs.xxx define some environment variables used in src/Makefile, and 'xxx' refer to various clusters around the world. You should copy one of these to Make.defs.local; e.g., if you MPI compiler is Intel based ifort, you can:

cp Make.defs.tsunami Make.defs.local

Then you need to edit Make.defs.local for e.g. the path names on your local cluster, and turn on/off modules. SCHISM requires few external libraries including netcdf.

After this is done:

cd ../src make clean make

CMake Build System (v3.2 and up)