From 9f6a0335d8a1017b413c1c306dcf6aae671032ea Mon Sep 17 00:00:00 2001 From: ArnaudYK <62339673+ArnaudYK@users.noreply.github.com> Date: Fri, 10 Jul 2020 10:55:13 +0200 Subject: [PATCH] Update input_output.py --- FEM_Module/input_output.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/FEM_Module/input_output.py b/FEM_Module/input_output.py index 2ffe53e..de6727b 100644 --- a/FEM_Module/input_output.py +++ b/FEM_Module/input_output.py @@ -64,6 +64,9 @@ def read_input(file_name, write_file): target_length = len(data["Ground"][next(required_keys)]) if not all(len(data["Ground"][key]) == target_length for key in required_keys): exit(-103) + + test=max(data["MaxCalcDist"],26.1) + data["MaxCalcDist"]=test to_delete = np.where(np.absolute(data["Ground"]["Depth"]) >= data["MaxCalcDepth"]) data["Ground"]["Depth"] = np.delete(data["Ground"]["Depth"], to_delete, 0)