Turns out we haven't been destroying our solvers properly when we destroy the time integrator. These solvers were keeping a reference to the primary DM and preventing it from being cleaned up. With this PR, we get a clean bill of health from Valgrind (at least for the TH test case mentioned in #223).
Turns out we haven't been destroying our solvers properly when we destroy the time integrator. These solvers were keeping a reference to the primary DM and preventing it from being cleaned up. With this PR, we get a clean bill of health from Valgrind (at least for the TH test case mentioned in #223).
Fixes #223