From 78eba296128067c5b175c2a0650710442f72f0dc Mon Sep 17 00:00:00 2001
From: David Seus <david.seus@nians.uni-stuttgart.de>
Date: Fri, 16 Aug 2019 19:13:52 +0200
Subject: [PATCH] fix trailing print(\n) causing blank output in
domainPatch.calc_gli_term
---
LDDsimulation/domainPatch.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/LDDsimulation/domainPatch.py b/LDDsimulation/domainPatch.py
index 0b11785..52476d1 100644
--- a/LDDsimulation/domainPatch.py
+++ b/LDDsimulation/domainPatch.py
@@ -621,7 +621,7 @@ class DomainPatch(df.SubDomain):
# print(f"np.allclose({p_coord}, {gli_dof_coord}, rtol=1e-10, atol=1e-14): {b_close_a}")
if a_close_b and b_close_a:
p_previous_dof = p_prev_dof
- print("\n")
+
if p_previous_dof is None:
raise RuntimeError(f"didn't find p_previous_dof corresponding to dict key ({gli_dof_coord})",
"something is wrong")
--
GitLab