# source config.cmaq

**URL:** <https://forum.cmascenter.org/t/source-config-cmaq/528>\
**Category:** CMAQ\
**Created:** [February 20, 2019, 4:29pm UTC](https://forum.cmascenter.org/t/source-config-cmaq/528 "2019-02-20T16:29:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sahir](https://avatars.discourse-cdn.com/v4/letter/s/7cd45c/32.png) [@sahir](https://forum.cmascenter.org/u/sahir)\
**Post date:** [February 20, 2019, 4:29pm UTC](https://forum.cmascenter.org/t/source-config-cmaq/528/1 "2019-02-20T16:29:24Z")

</div>

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’

---

<div class="post-metadata">

**Author:** ![lizadams](https://avatars.discourse-cdn.com/v4/letter/l/49beb7/32.png) [@lizadams](https://forum.cmascenter.org/u/lizadams)\
**Post date:** [February 22, 2019, 5:11pm UTC](https://forum.cmascenter.org/t/source-config-cmaq/528/2 "2019-02-22T17:11:13Z")

</div>

Please use the command

```auto
> csh

```

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

```auto
> source config.cmaq

```
