Skip to content

Commit

Permalink
changing mat.tocsc() to mat.tocsr(), updating shoreline angle at each…
Browse files Browse the repository at this point in the history
… iteration
  • Loading branch information
roya sahraei committed Aug 1, 2024
1 parent 73215f8 commit f3af554
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions brie/alongshore_transporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def _build_matrix(
+ dx_dt
)

return mat.tocsc(), rhs, r_ipl, coast_diff
return mat.tocsr(), rhs, r_ipl, coast_diff #changing csc to csr


class AlongshoreTransporter:
Expand Down Expand Up @@ -551,9 +551,9 @@ def update(self, x_s_dt, x_s):
self._dx_dt = x_s_dt
# self._shoreline_x = x_s
# self._dy
# self._shoreline_angles = calc_shoreline_angles(
# self._shoreline_x, spacing=self._dy
# )
self._shoreline_angles = calc_shoreline_angles(
self._shoreline_x, spacing=self._dy
)
self._time += self._dt

# lexi added:
Expand Down

0 comments on commit f3af554

Please sign in to comment.