SimVascular / svZeroDSolver

A C++ lumped-parameter solver for blood flow and pressure in hemodynamic networks
Other
6 stars 18 forks source link

Add error checking in the svzerodsolver application #38

Closed ktbolt closed 10 months ago

ktbolt commented 1 year ago

Running the svzerodsolver application without any arguments produces a segmentation fault.

Running the svzerodsolver application with an input JSON file that does not exist produces

libc++abi.dylib: terminating with uncaught exception of type nlohmann::json_abi_v3_11_2::detail::parse_error: [json.exception.parse_error.101] parse error at line 1, column 1: syntax error while parsing value - unexpected end of input; expected '[', '{', or a literal

I will add checks to the svzerodsolver application to handle both of these cases.

I will also add a --help command-line option that most applications support.

mrp089 commented 10 months ago

@ktbolt, seems like this was addressed in #67?

ktbolt commented 10 months ago

@mrp089 Right you are, l'll close this.