fixed compiling on walnut
[wrffire.git] / env.sh
blob0e3ba44e0d322b1093d5aed572c2feca904a000b
2 cont=1
3 host=`hostname`
4 myhost=1
5 if [ ${host} = "wf" ] ; then
6 base="/opt/wrf-libs"
7 source $base/setpaths.sh
8 mpibins="/opt/intel9.1-64-par/bin"
9 elif [ ${host} = "opt4.cudenver.edu" ] ; then
10 base="/home/grads/jbeezley/wrf-libs"
11 mpibins="/home/grads/jbeezley/intel9.1-libs-par-64/bin"
12 elif [ ${host} = "walnut" ] ; then
13 base="/local"
14 myhost=0
15 else
16 echo "unknown host: " ${host}
17 cont=0
20 if [ $cont -eq 1 ] ; then
22 if [ $myhost -eq 1 ] ; then
23 export NETCDF=${base}/netcdf
24 export JASPERLIB=${base}/jasper/lib
25 export JASPERINC=${base}/jasper/include
26 export NCARG=${base}/ncarg
27 export NCARG_ROOT=$NCARG
28 ulimit -s unlimited
30 #ifvars=/opt/intel/fce/9.1.036/bin/ifortvars.sh
31 ifvars=/opt/intel/fce/current/bin/ifortvars.sh
32 if [ -f ${ifvars} ] ; then
33 source ${ifvars}
34 else
35 echo "WARNING: couldn't find ifort setup script"
37 export PATH=$mpibins:$PATH
39 else
41 export NETCDF=${base}/netcdf
42 export NCARG=${base}/ncarg
43 export NCARG_ROOT=$NCARG
44 ulimit -s unlimited
46 export PGI=/usr/pgi
47 export PATH=$PGI/linux86-64/6.2/bin:$PATH
48 export MANPATH=$PGI/linux86-64/6.2/man
49 export LM_LICENSE_FILE='7496@licenseb.ucar.edu:7496@licensea.ucar.edu'
50 export FC=pgf77
51 export F90=pgf90
52 export LAPACK='-L/usr/pgi/linux86-64/6.2/lib -llapack -lblas'
56 else
58 echo "Quiting"