diff options
| -rw-r--r-- | boundaryDefinition.txt | 4 | ||||
| -rwxr-xr-x | makeBoundary.py | 6 | 
2 files changed, 5 insertions, 5 deletions
| diff --git a/boundaryDefinition.txt b/boundaryDefinition.txt index b537e0d..77fc14d 100644 --- a/boundaryDefinition.txt +++ b/boundaryDefinition.txt @@ -17,8 +17,8 @@ slope: -0.003646  # Imposed discharge:  target_flow: 0.188 -# Panel marker co-ordinates (commma-separated list of cell-centre values): -markers: [4.3] +# Panel marker co-ordinates (commma-separated list of distances /m): +markers: [4.2]  # Fill order (comma-separated list of panel indices):  panel: [0, 1] diff --git a/makeBoundary.py b/makeBoundary.py index d79c280..764952c 100755 --- a/makeBoundary.py +++ b/makeBoundary.py @@ -181,11 +181,11 @@ num_panels = len(panel) # number of panels across boundary  # convert marker co-ordinates to array indices:  marker_ind = [0]  for i in range(len(markers)): -    marker_ind.append(int(markers[i]/dX - 1/2)) +    marker_ind.append(int(markers[i]/dX))  if location == 'left' or location == 'right': -    marker_ind.append(nrows-1) +    marker_ind.append(nrows)  elif location == 'top' or location == 'bottom': -    marker_ind.append(ncols-1) +    marker_ind.append(ncols)  # print(marker_ind) | 
