Xiangyu-Hu / SPHinXsys

SPHinXsys provides C++ APIs for engineering simulation and optimization. It aims at complex systems driven by fluid, structure, multi-body dynamics and beyond. The multi-physics library is based on a unique and unified computational framework by which strong coupling has been achieved for all involved physics.

Home Page:https://www.sphinxsys.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash with without error message when regression data not written.

Xiangyu-Hu opened this issue · comments

The regression test class is defined but not used to output data.
For example in the water exit case, one define the test:

RegressionTestDynamicTimeWarping<ObservedQuantityRecording<Real>>
write_cylinder_wetting("Phi", io_environment, wetting_observer_contact);

But forget to write the output file, and still try to generate the regression test data by:
write_cylinder_wetting.generateDataBase(1.0e-3);

When I run the python script, I obtained crash information, but not able find the reason,
that I actually have not write out data.
Therefore, we need an error handler so that one can notice that the data file was not written.

I will have a look on that.

Another issue is that there is repeating data, the the reading the xml lead to error and and the regression data can nor be generated.

@Bo-Zhang1995 Please look the these bugs.