From 61cda18c70e97df96e5c6e98fcc2d9c197e837a0 Mon Sep 17 00:00:00 2001
From: dave <dave@dtu.dk>
Date: Wed, 3 Aug 2016 09:17:35 +0200
Subject: [PATCH] prepost.Simulations: forgotten var for string replacement

---
 wetb/prepost/Simulations.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/wetb/prepost/Simulations.py b/wetb/prepost/Simulations.py
index 56c96bb..4c6ae07 100755
--- a/wetb/prepost/Simulations.py
+++ b/wetb/prepost/Simulations.py
@@ -1254,7 +1254,7 @@ def create_chunks_htc_pbs(cases, sort_by_values=['[Windspeed]'], ppn=20,
         pbs += 'find %s -iname "*.dat" -iname "*.sel" -print0 ' % res_base
         fname = 'resfiles_chunk_%05i' % ii
         pbs += '| xargs -0 tar --remove-files -rf %s.tar\n' % fname
-        pbs += 'xz -z2 -T 15 %s.tar\n'
+        pbs += 'xz -z2 -T 15 %s.tar\n' % fname
 
         # compress all logfiles into an archive
         pbs += '\necho "move logfiles into compressed archive"\n'
-- 
GitLab