From 7e00b306b3c7b64b9bf5160e06d9ea2dd4ea7d37 Mon Sep 17 00:00:00 2001
From: xvysoc01 <ondrej.vysocky@vsb.cz>
Date: Thu, 5 Oct 2017 12:41:57 +0200
Subject: [PATCH] compilation for ptf and rdd

---
 .gitignore         |  1 +
 compile_for_rdd.sh | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 43 insertions(+)
 create mode 100644 compile_for_rdd.sh

diff --git a/.gitignore b/.gitignore
index acf8bbd5..cbb3c31e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,4 +6,5 @@ OpenFOAM-v1612+/wmake/rules/linux64Icc/c++
 lnInclude/
 foammodules.sh
 meric/*
+slurm-*
 !meric/wscript
diff --git a/compile_for_rdd.sh b/compile_for_rdd.sh
new file mode 100644
index 00000000..a521325c
--- /dev/null
+++ b/compile_for_rdd.sh
@@ -0,0 +1,42 @@
+#!/bin/bash
+
+#SBATCH -t 0-02:00
+#SBATCH --nodes=1
+#SBATCH --tasks-per-node=1
+#SBATCH --cpus-per-task=24
+#SBATCH -A p_readex
+#SBATCH --mem=62000
+
+# interactive
+# srun -N 1 --tasks-per-node=1 --cpus-per-task=24 --time 2:00:00 -p interactive --exclusive --x11  --pty bash
+
+################################################################################
+# SET PATH TO MODULES 
+
+ENV_SET_FILE=$(pwd)/FOAMMODULES-ScorepGCC-manual-Taurus.sh
+
+################################################################################
+echo "source $ENV_SET_FILE" > foammodules.sh
+source $ENV_SET_FILE
+
+# cd
+#foam
+cd $(pwd)/OpenFOAM-v1612+
+depth=1
+
+# compile
+if [ $depth -eq 1 ]
+then
+	./Allwmake
+elif [ $depth -eq 2 ]
+then
+	cd src
+	./Allwmake
+	cd ..
+	. dirSimple
+	wclean
+	wmake
+fi
+
+
+
-- 
GitLab