#! /bin/sh . $MODULESHOME/init/sh current_dir=`pwd` export WHERE_AM_I=$( hostname | cut -c1-1 ) cd ../.. module reset source versions/build.ver env | grep ver module use modulefiles/wcoss2 module load HMON/build #module load craype-hugepages2M # library libsia needs sandybridge #module swap craype-sandybridge craype-haswell #module unload g2-intel; \ #module load g2-intel/2.5.2; \ #module load PrgEnv-intel/5.2.56 # need to use default intel for hycom forecast to compile (spec mod_stokes) # module swap intel intel/17.0.3.191 module list export HDF5_LDFLAGS="-L${HDF5_ROOT}/lib -lhdf5_hl -lhdf5hl_fortran -lhdf5 -lhdf5_fortran -lz"; export NETCDF_LDFLAGS="-L${NETCDF}/lib -lnetcdff -lnetcdf -lz ${HDF5_LDFLAGS}"; cd $current_dir set -x # Ensure a clean compile: ./clean -a find . -name '*.o' -o -name '*.a' -o -name '*.mod' | xargs rm -f echo 8 | ./configure # Compile: ./compile > make_log 2>&1