#!/bin/bash

#Script for parallel simulations compilation
#Makes use of Makefile.parallel which sources include.mk.parallel

#1. switch modules for parallel compile
#module swap craype-target-native craype-haswell
#(do not need to do this if craype-haswell is default)

#2. Set modules for intel compiler
module swap PrgEnv-cray PrgEnv-intel

#3. For using parallel HDF5 module
#cray-netcdf-hdf5parallel/4.3.2

#3. Run normal make for RAMS
cd bin.rams
make -f Makefile.6.2.06.parallel clean
make -f Makefile.6.2.06.parallel
mv rams-6.2.06 rams-6.2.06.parallel
