diff --git a/LDDsimulation/domainPatch.py b/LDDsimulation/domainPatch.py index 0b11785b48f362ca4e85c24eb0f41666b7aec23e..52476d16608b694b12a1f4d44f23ae85174e62dc 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")