Set environment variables for compilers¶
The sample GNU and Intel environment files set the environment variables listed below in order to select the desired C, C++, and Fortran compilers:
Note
GEOS-Chem Classic only requires the Fortran compiler. But you will also need the C and C++ compilers if you plan to build other software packages (such as KPP) or install libraries manually.
Variable |
Specifies the: |
GNU name |
Intel name |
---|---|---|---|
|
C compiler |
|
|
|
C++ compiler |
|
|
|
Fortran compiler |
|
|
The commands used to define CC
, CXX
, and
FC
are:
# for GNU
export CC=gcc
export CXX=g++
export FC=gfortran
or
# for Intel
export CC=icc
export CXX=icpc
export FC=ifort