Closed loeiten closed 8 years ago
Sorry everyone, I should have checked this more thoroughly before merging. I'm a little worried that the test suite still passed, since it includes many cases with mms=false. The bug was due to a test "if(block != NULL)" when block was uninitialised, so it's possible that the tests were just lucky and block was always 0.
Fixed for now, but a better solution is in the mesh/next branch, where this memory management is greatly simplified using Array<>.
Commit 3a0c34be01c94303beb6c403a93e60581a8e3aeb gives a segmentation fault. If the current
block != NULL
.This segmentation fault occurs in
SOLVE_FOR(...)
ifmms=false
(for example when running thetest-wave/
example).A semi stack-trace looks like this
Notice that if
mms=true
,inital_profile(...)
is never called, and for that reason the commit has passed the keen eyes of our good friend travis.In addition to fixing the problem, I suggest to somehow make the
SOLVE_FOR
formms=false
more equal to themms=true
case, or to add for example thetest-wave/
example to thetest_suite
in order to avoid bugs like this in the future.