printing the solver residual values #4313
-
hi all, is there an option in pybamm to print the solver residual values while running the simulation. I did see the below command in solver setup, but it doesn't seem to give residual values. solver = pybamm.CasadiSolver(mode="safe", extra_options_setup={"print_stats":True}) thanks for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
no, there isn't an option like this. When are you interested in the residual values? Generally the residual values are calculated in the C code of the solver and wouldn't be accessible unless you felt like editing this code. However, if you are interested in the residual values at the output timesteps, then you can probably calculate these from python using the information stored in the |
Beta Was this translation helpful? Give feedback.
no, there isn't an option like this. When are you interested in the residual values? Generally the residual values are calculated in the C code of the solver and wouldn't be accessible unless you felt like editing this code. However, if you are interested in the residual values at the output timesteps, then you can probably calculate these from python using the information stored in the
pybamm.Solution
class