From da737763230728774c728b616990b4bd6cc2dc43 Mon Sep 17 00:00:00 2001 From: Paul Garlick Date: Tue, 1 Oct 2019 12:06:44 +0100 Subject: read boundary location from boundary definition file. --- makeBoundary.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/makeBoundary.py b/makeBoundary.py index 37a45d7..1fc6b69 100755 --- a/makeBoundary.py +++ b/makeBoundary.py @@ -25,8 +25,9 @@ definition_dict = read_definition('boundaryDefinition.txt') # m, c = np.polyfit(ych, zch, 1) # print('gradient =', m, 'intercept =', c) -slope = abs(definition_dict["slope"]) # slope at top boundary +slope = abs(definition_dict["slope"]) # slope at top boundary target_flow = definition_dict["target_flow"] # imposed discharge +location = definition_dict["location"] # boundary location print(target_flow) with open('../topography/top_boundary.xyz', "r") as topo: -- cgit