source config.cmaq

export COMPILER=intel

export COMPILER=pgi

export COMPILER=gcc

export system="/bin/uname -i"
export bld_os="/bin/uname -s``/bin/uname -r | cut -d. -f1"
export lib_basedir=$M3HOME/lib
######## set these extra library paths only if needed for your architecture
#export extra_lib="-openmp"
#export extra_lib="-lrdmacm -libumad -lopa -lmpl -lrt -lpthread -libverbs -ldl"
#export extra_lib="-lrdmacm -libumad "
export extra_lib

####### MPI libraries ########
#use -lmpich for mvpich and -lmpi for openmpi
export mpi="-lmpich"
#export mpi="-lmpi"

case intel:

##> Intel fortran compiler…
export compiler=intel
export compiler_ext=ifort
export myFC=mpif90
export myCC=mpicc
export myLINK_FLAG="-i-static"
export myFFLAGS="-fixed -132 -O3 -override-limits -fno-alias -mp1 -fp-model precise"
export myFRFLAGS="-free -O3 -fno-alias -mp1 -fp-model precise"
export myCFLAGS="-O2"
export extra_lib=$extra_lib
breaksw

“config.cmaq” 101L, 3444C written
[sahir@un03 scripts]$ source config.cmaq
-bash: config.cmaq: line 47: syntax error near unexpected token export' -bash: config.cmaq: line 47: export compiler=intel’

Please use the command

> csh

This will put you in the c-shell
Then you will be able to run the command

> source config.cmaq