EcohydrologyTeam / ClearWater-riverine

A 2D water quality transporter model to calculate conservative advection and diffusion of constituents from an unstructured grid of flows
MIT License
6 stars 0 forks source link

Update mass flux calculation #54

Closed sjordan29 closed 7 months ago

sjordan29 commented 7 months ago

This PR updates the _mass_flux() method of a ClearwaterRiverine model to use the appropriate cell concentration when calculating the mass flux across a cell boundary. This fixes switches when we multiply the face flux by the parent or neighbor cell in a conditional argument. This closes #47.