Skip to content

Compiling CFAST

Richard Peacock edited this page Oct 27, 2015 · 2 revisions

Preliminaries

This page describes how to build CFAST using command line tools that come with the Intel Fortran compiler.

  • Install (or update to the most recent revision) the CFAST Git repository.
  • Install the Intel Fortran compiler.
  • Define the IFORT_COMPILER environment variable to point to where your compiler resides. For example for the bash shell place the following line:
export IFORT_COMPILER=/opt/intel/composerxe

in your .bash_profile start up file. For the tcsh shell, place the following line:

setenv IFORT_COMPILER /opt/intel/composerxe

in your .tcsh start up file. (Of course put in your own compiler location)

Building CFAST

There is a general purpose makefile for CFAST compilation in the CFAST Git repository directory named CFAST. To compile CFAST for your particular OS, do the following:

  • Open a command shell and cd to the CFAST\intel_win_32 directory within the CFAST repository. If you are working under Linux or OSX, 32 or 64 bit, choose the appropriate directory.
  • Type make_cfast.bat or make_cfast.sh, depending on your OS.

Alternatively on a Windows PC you may

  • Open the directory CFAST\intel_win_32 directory within the CFAST repository using the Windows Explorer interface
  • Double-click on the make_cfast.bat batch file

If you get stuck, take a look at the make_cfast script to better understand what is actually happening. Chances are that there a different path name or compiler version number installed on your machine.