SimVascular / svOneDSolver

A C++ solver for blood flow and pressure in deformable 1D hemodynamic networks
Other
16 stars 19 forks source link

Add handling of negative areas and solver NaNs in general. #36

Closed ktbolt closed 5 years ago

ktbolt commented 5 years ago

The 1D solver does not check for residuals that are NaNs. This was occurring when outlet areas where becoming negative. I added throwing exceptions for these conditions and changed the returned error exit code from -1 to 1, exit codes are 0-255.

osmsc commented 5 years ago

@ktbolt we don't really have continuous integration setup for the 1-D solver, so guess we just commit whenever we feel like it...