From 1e4472228e22e2a2229f8548914891cea9e955cb Mon Sep 17 00:00:00 2001 From: Thomas Roy Date: Wed, 8 May 2024 11:30:54 -0700 Subject: [PATCH] Allow zero U_app --- echemfem/solver.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/echemfem/solver.py b/echemfem/solver.py index b879928..452534b 100644 --- a/echemfem/solver.py +++ b/echemfem/solver.py @@ -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