SimVascular / svSolver

Separate repository for svSolver
16 stars 23 forks source link

svpost crashes when using the -nonbinary option. #97

Open ktbolt opened 3 years ago

ktbolt commented 3 years ago

The svpost program has a -nonbinary option to convert results to VTK ASCII format. However, using this option causes svpost to crash with

Will reduce all available data
Opening 4-procs_case/restart.100.1 to scan for number of variables...
Opening 4-procs_case/geombc.dat.1 to scan for number of processors and global modes...
libc++abi.dylib: terminating with uncaught exception of type std::bad_alloc: std::bad_alloc

The -vis option does work, converts results to Spectrum Visualizer (!) ASCII results.

And I can only wonder why the -nonbinary option is not named -ascii.

ktbolt commented 3 years ago

The -nonbinary option description is Read/Write files in ASCII format so the crash occurs because svpost is trying to read simulation results in ASCII format.

It seems that the -nonbinary option is not used to write VTK ASCII files as I thought it might.

I'm not sure how useful this option is since results must be in ASCII to write results in ASCII. It would be nice to write results to VTK ASCII files.