Setting Environment Variables Using csh¶
If using a csh environment, use the following syntax to set the environment variables prior to installing WRF and WPS.
Environment Settings for a gfortran/GNU Compiler
setenv dir /path_to_directory/Build_WRF/LIBRARIES
setenv CC gcc
setenv CXX g++
setenv FC gfortran
setenv FCFLAGS -m64
setenv F77 gfortran
setenv FFLAGS -m64
setenv JASPERLIB $dir/grib2/lib
setenv JASPERINC $dir/grib2/include
setenv LDFLAGS -L$dir/grib2/lib
setenv CPPFLAGS -I$dir/grib2/include
Environment Settings for an Intel Compiler
setenv dir /path_to_directory/Build_WRF/LIBRARIES
setenv CC icc
setenv CXX icpc
setenv CFLAGS '-O3 -xHost -ip -no-prec-div -static-intel'
setenv CXXFLAGS '-O3 -xHost -ip -no-prec-div -static-intel'
setenv F77 ifort
setenv FC ifort
setenv F90 ifort
setenv FFLAGS '-O3 -xHost -ip -no-prec-div -static-intel'
setenv CPP 'icc -E'
setenv CXXCPP 'icpc -E'
setenv JASPERLIB $dir/grib2/lib
setenv JASPERINC $dir/grib2/include
setenv LDFLAGS -L$dir/grib2/lib
setenv CPPFLAGS -I$dir/grib2/include