| 35 | } |
| 36 | |
| 37 | void Finalize() |
| 38 | { |
| 39 | // Cleanup the memory helpers |
| 40 | MemoryHelper::Finalize(); |
| 41 | |
| 42 | // Clean up the sundials contexts |
| 43 | for (int i = 0; i < initialized.size(); i++) { |
| 44 | initialized[i] = 0; |
| 45 | delete the_sundials_context[i]; |
| 46 | the_sundials_context[i] = nullptr; |
| 47 | } |
| 48 | } |
| 49 | |
| 50 | ::sundials::Context* The_Sundials_Context(int i) |
| 51 | { |