Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions pyDeltaRCM/sed_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,6 @@ def route_all_sand_parcels(self) -> None:

_msg = "Supplying model state to SandRouter for iteration"
self.log_info(_msg, verbosity=2)

self._sr.run(
start_indices,
self.eta,
Expand Down Expand Up @@ -691,13 +690,14 @@ def run(
self.qx = qx
self.qy = qy
self.qs = qs
_shape = self.eta.shape

num_starts = start_indices.shape[0]
for np_sed in range(num_starts):
self.Vp_res = self.Vp_sed

px = 0
py = start_indices[np_sed]
# get initial location based on flat index
px, py = shared_tools.custom_unravel(start_indices[np_sed], _shape)

self.qs[px, py] = self.qs[px, py] + self.Vp_res / 2.0 / self._dt / self._dx
self._route_one_parcel(px, py)
Expand Down Expand Up @@ -912,13 +912,14 @@ def run(
self.qw = qw
self.qx = qx
self.qy = qy
_shape = self.eta.shape

num_starts = start_indices.shape[0]
for np_sed in range(num_starts):
self.Vp_res = self.Vp_sed

px = 0
py = start_indices[np_sed]
# get initial location based on flat index
px, py = shared_tools.custom_unravel(start_indices[np_sed], _shape)

self._route_one_parcel(px, py)

Expand Down
Loading