Selection of Compilers - mlwong/HAMeRS GitHub Wiki

Selection of Compilers

The compilers to be used to compile C, C++ and Fortran parts of HAMeRS can be chosen by setting the environment variables CC, CXX and F77 respectively before running CMake. For example, to use the default MPI compilers, you can run:

export CC=mpicc
export CXX=mpicxx
export F77=mpif77