From 01e49336339431b0202b378ded65123a715585c7 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Thu, 3 Aug 2017 00:52:21 +0200
Subject: [PATCH] Fixing gin MPI

---
 build.sh | 2 ++
 run.sh   | 1 +
 2 files changed, 3 insertions(+)

diff --git a/build.sh b/build.sh
index 24a4d16fb..76d85ecad 100755
--- a/build.sh
+++ b/build.sh
@@ -21,6 +21,8 @@ if [ "$2" == "gin" ]
 then
  echo "Compiling on gin\n"
 
+ source "$HOME/.bashrc"
+
  ## Check if MPI folder exist if not copy MPICH
 
  if [ ! -d $HOME/$5/MPI ]; then
diff --git a/run.sh b/run.sh
index eddcfd61b..e59d45389 100755
--- a/run.sh
+++ b/run.sh
@@ -8,6 +8,7 @@ echo "Branch: $6"
 
 if [ "$2" == "gin" ]
 then
+ source "$HOME/.bashrc"
  module load gcc/4.9.2
  if [ $? -ne 0 ]; then
    curl -X POST --data "payload={\"icon_emoji\": \":jenkins:\", \"username\": \"jenkins\"  , \"attachments\":[{ \"title\":\"Error:\", \"color\": \"#FF0000\", \"text\":\"$2 failed to complete the openfpm_pdata test \" }] }" https://hooks.slack.com/services/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
-- 
GitLab