From bf2b7a01c803f1247347cf5ccb4667b9ad8a5799 Mon Sep 17 00:00:00 2001
From: Lars Bilke <lars.bilke@ufz.de>
Date: Mon, 3 May 2021 13:22:10 +0200
Subject: [PATCH] [T] Fix working dir for HeatTransportBHE_3D_3BHEs_array.

---
 Tests/Data/Parabolic/T/3D_3BHEs_array/bcs_tespy.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Tests/Data/Parabolic/T/3D_3BHEs_array/bcs_tespy.py b/Tests/Data/Parabolic/T/3D_3BHEs_array/bcs_tespy.py
index dbfe97a73ed..42892232881 100644
--- a/Tests/Data/Parabolic/T/3D_3BHEs_array/bcs_tespy.py
+++ b/Tests/Data/Parabolic/T/3D_3BHEs_array/bcs_tespy.py
@@ -166,7 +166,8 @@ class BC(OpenGeoSys.BHENetwork):
 # initialize the tespy model of the bhe network
 # load path of network model:
 # loading the TESPy model
-project_dir = os.chdir(ogs_prj_directory)
+if ogs_prj_directory != "":
+    os.chdir(ogs_prj_directory)
 nw = load_network("./pre/tespy_nw")
 # set if print the network iteration info
 nw.set_attr(iterinfo=False)
-- 
GitLab