Page MenuHomec4science

run.sh
No OneTemporary

File Metadata

Created
Sun, Oct 6, 08:40
#!/bin/bash
if [ ! -d "Source" ]; then
read -p "The directory Source with all the files does not seem to exist. Do you want to download it ? [Yy/Nn] " -n 1 -r
echo # (optional) move to a new line
if [[ $REPLY =~ ^[Yy]$ ]]
then
wget https://drive.switch.ch/index.php/s/bTf4FbG4upj2ySV/download
fi
fi
if [ "$1" = "SEQ" ]; then
cd SEQUENTIAL
mkdir -p build
cd build
cmake ..
make
./phpctsunamiproject
elif [ "$1" = "OpenMP" ]; then
cd OpenMP
mkdir -p build
cd build
cmake ..
make
./phpctsunamiproject
elif [ "$1" = "clean" ]; then
rm -rf */build
else
cd MPI
mkdir -p build
cd build
cmake ..
make
srun -n 16 phpctsunamiproject
fi
## https://drive.switch.ch/index.php/s/bTf4FbG4upj2ySV/download

Event Timeline