#!/bin/bash
#set -e
CURRENT_DIR=`pwd`
INCLUDE_DIR="$CURRENT_DIR/0001r"
$PICSRC/createParameterSet $PICSRC/examples/LaserWakefield/ $INCLUDE_DIR
module load GCC/4.9.3-2.25 git/2.7.2 CMake/3.4.3 MVAPICH2/2.2b-GDR HDF5/1.8.16 Boost/1.60.0-Python-2.7.11
#PICSRC/configure -c"-DCMAKE_CXX_STANDARD=11" $HOME/test/case001
BUILD_DIR="$INCLUDE_DIR/build"
rm -rf $BUILD_DIR && mkdir -p $BUILD_DIR
cd $BUILD_DIR
$PICSRC/configure $INCLUDE_DIR && make
$PICSRC/configure -c"-DCMAKE_CXX_STANDARD=11" $INCLUDE_DIR && make
cd $CURRENT_DIR
