#!/bin/bash
#set -e
CURRENT_DIR=`pwd`
INCLUDE_DIR="$CURRENT_DIR/0001rr"
$PICSRC/createParameterSet $PICSRC/examples/LaserWakefield/ $INCLUDE_DIR
source ~/mod
#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
cd $CURRENT_DIR && rm -rf $BUILD_DIR && mkdir -p $BUILD_DIR
$PICSRC/configure -c"-DCMAKE_CXX_STANDARD=11" $INCLUDE_DIR && make
cd $CURRENT_DIR
