Skip to content

Commit 64acb25

Browse files
added debug line to BVP failure message
1 parent b8b8895 commit 64acb25

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

  • src/pathsim_chem/tritium

src/pathsim_chem/tritium/glc.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,13 +242,16 @@ def _process_results(solution, params, phys_props, dim_params):
242242
Returns:
243243
list: A list containing the results dictionary and the solution object.
244244
"""
245-
if not solution.success:
246-
raise RuntimeError("BVP solver failed to converge.")
247245

248246
# Unpack parameters
249247
c_T_in, P_in, T = params["c_T_in"], params["P_in"], params["T"]
250248
y_T2_in = params["y_T2_in"]
251249

250+
if not solution.success:
251+
print("c_T_in: ",c_T_in)
252+
print("y_T2_in :", y_T2_in)
253+
raise RuntimeError("BVP solver failed to converge.")
254+
252255
# Dimensionless results
253256
x_T_outlet_dimless = solution.y[0, 0]
254257
Q_l, Q_g = phys_props["Q_l"], phys_props["Q_g"]

0 commit comments

Comments
 (0)