Skip to content

Commit

Permalink
the value of x_s_dt, x_s, and x_b were not updated correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
roya sahraei committed Aug 8, 2024
1 parent 8f7ee47 commit fd5b4a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions brie/brie.py
Original file line number Diff line number Diff line change
Expand Up @@ -607,6 +607,7 @@ def update(self):
# update inlet model parameters prior to advancing one TS
self._inlets.shoreline_x = self._x_s
self._inlets.bay_shoreline_x = self._x_b
self._inlets._x_s_dt = self._x_s_dt
self._inlets.update(self._h_b, self._z)
self._x_b_fld_dt = self._inlets._x_b_fld_dt #get the updated values from inlet module
self._Qinlet = self._inlets._Qinlet
Expand Down
2 changes: 1 addition & 1 deletion brie/inlet_spinner.py
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ def update(self, h_b, z): #updated value of h_b, and z were only updated in brie
inlet_morphodynamics(
self._inlet_idx, self._new_inlet, self._time_index, wi_cell, self._ny, self._dy, self._x_b_fld_dt, w, # use time_index instead of time
self._q_s, self._h_b, di_eq, self._d_b, self._Qinlet, self._rho_w, ai_eq, wi_eq, self._wave_height,
self._x_b, self._x_s, self._x_s_dt, self._w_b_crit, self._omega0, self._inlet_y, self._inlet_age,
self._bay_shoreline_x, self._shoreline_x, self._x_s_dt, self._w_b_crit, self._omega0, self._inlet_y, self._inlet_age,
self._d_sf
) # inlet morphodynamics
self._inlet_nr, self._inlet_migr, self._inlet_Qs_in, self._inlet_alpha, self._inlet_beta, \
Expand Down

0 comments on commit fd5b4a3

Please sign in to comment.