From fb27db2fdd6ceed14ecef5fc613cf57ab6bfe61a Mon Sep 17 00:00:00 2001
From: Robert Izzard <r.izzard@surrey.ac.uk>
Date: Tue, 16 Nov 2021 20:22:14 +0000
Subject: [PATCH] add force join elsewhere

---
 binarycpython/utils/HPC.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/binarycpython/utils/HPC.py b/binarycpython/utils/HPC.py
index 3f0af14d6..a6757b118 100644
--- a/binarycpython/utils/HPC.py
+++ b/binarycpython/utils/HPC.py
@@ -65,7 +65,8 @@ class HPC(condor,slurm):
         Check the joinfiles to make sure they all exist
         and their .saved equivalents also exist
         """
-        if os.path.exists(joiningfile):
+        if self.grid_options['HPC_force_join'] == 0 and \
+           os.path.exists(joiningfile):
             if vb:
                 print("cannot join: joiningfile exists at {}".format(joiningfile))
             return False
-- 
GitLab