Skip to content

Commit

Permalink
Update input_output.py
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnaudYK committed Jul 10, 2020
1 parent e3a0328 commit 9f6a033
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FEM_Module/input_output.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9f6a033

Please sign in to comment.