#! /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 list export HDF5_LDFLAGS="-L${HDF5}/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 #export WRF_DIR=`pwd`/../hwrf_v3.7.1.fd/ echo 6 | ./configure # Compile: ./compile > make_log 2>&1 # Rename executable for HMON: #cp -p cpl_exec/hmon_wm3c.exe hmon_wm3c/.