Skip to content

Commit

Permalink
Allow zero U_app
Browse files Browse the repository at this point in the history
  • Loading branch information
tlroy committed May 8, 2024
1 parent 6152cef commit 1e44722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion echemfem/solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ def _internal_dS(subdomain_id=None, domain=None):
us[self.num_liquid:self.num_liquid + self.num_gas], self.pg, gas_params)

# setup applied voltage
if physical_params.get("U_app"):
if physical_params.get("U_app") is not None:
U_app = physical_params["U_app"]
if isinstance(U_app, (Constant, Function)):
self.U_app = U_app
Expand Down

0 comments on commit 1e44722

Please sign in to comment.