From a5fc83dd9abd2e6feb3ff81d36be3832b74d623b Mon Sep 17 00:00:00 2001
From: dave <dave@dtu.dk>
Date: Mon, 1 Aug 2016 16:20:31 +0200
Subject: [PATCH] prepost.Simulations: fixed wrong path at un-zipping point

---
 wetb/prepost/Simulations.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py
index 502b9f88..64f551fb 100755
--- a/wetb/prepost/Simulations.py
+++ b/wetb/prepost/Simulations.py
@@ -1187,6 +1187,9 @@ def create_chunks_htc_pbs(cases, sort_by_values=['[Windspeed]'], ppn=20,
         # =====================================================================
         # browse back to the scratch directory
         pbs += '\necho "%s"\n' % ('-'*70)
+        pbs += 'cd %s\n' % pbase
+        pbs += "echo 'current working directory:'\n"
+        pbs += 'pwd\n'
         pbs += 'echo "unzip chunk, create dirs in cpu and sim_id folders"\n'
         # unzip chunk, this contains all relevant folders already, and also
         # contains files defined in [copyto_files]
-- 
GitLab