#!/bin/bash # This script sets environment variables for building and running the # project on NCSA Cobalt. Note that this script should be executed # with source env-cobalt.sh rather than ./env-cobalt.sh so that the # exports affect the current shell. # Building on NCSA Cobalt. # .soft # # @remove +hdf4 # @remove +hdf4-4.2.1 # @remove +hdf5 # @remove +hdf5-1.6.5 # # @remove +intel-compilers # @remove +intel-compilers10.0 # @remove +intel-compilers10.1 # @remove +intel-c-10.1.017-f-10.1.017 # @remove +intel-c-11.1.064-f-11.1.064 # # ...defaults... # # +phdf5-1.8.4 # Configure echo "Setting CPPFLAGS." export CPPFLAGS="\ -I$HDF5_HOME/include \ -I$NCBI_DIR/include \ -I$PETSC_DIR/$PETSC_ARCH/include" echo CPPFLAGS=$CPPFLAGS echo "Setting LDFLAGS." export LDFLAGS="\ -L$HDF5_HOME/lib \ -L/usr/apps/hdf/szip/lib \ -L/usr/local/intel/10.1.017/lib \ -L$NCBI_DIR/lib \ -L$PETSC_DIR/$PETSC_ARCH/lib" echo LDFLAGS=$LDFLAGS echo "Setting LD_LIBRARY_PATH." export LD_LIBRARY_PATH=\ $LD_LIBRARY_PATH:\ /usr/apps/hdf/szip/lib:\ $PETSC_DIR/$PETSC_ARCH/lib echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH