SimVascular / svSolver

Separate repository for svSolver
16 stars 23 forks source link

Output QHistRCR.dat/PHistRCR.dat every time step #81

Closed mrp089 closed 4 years ago

mrp089 commented 4 years ago

Fixes #80. The current time step is appended to QHistRCR.dat and PHistRCR.dat and files are written for every time step:

PHistRCR.dat.1
PHistRCR.dat.2
...
QHistRCR.dat.1
QHistRCR.dat.2
...

When restarting, only the files of the restart time step are read. If these are not found, the legacy files QHistRCR.dat and PHistRCR.dat are read. This allows restarting simulations run with a previous version of svsolver to be restarted by this one.

ktbolt commented 4 years ago

I think this looks good.

The numstart.dat file is the last to be written so the QHistRCR.dat.n file should exists for the time step n given in numstart.dat.

I also tested your branch using the SV GUI, looks good.