To terminate the SPARK simulation session, we need to call the SPARK::End() function. This will close the log files and perform proper destruction of the data stuctures allocated at runtime by the various solvers and problem factories.
- Warning:
- If you skip this step, then you subject yourself to potential memory leaks.