Peano
|
The code crashes almost immediately Fire up a debugger and see if it already terminates in a routine similar to
If even creating a simple array over your cells fails, then you likely work with very large patches or large polynomial order. The patches simply do not fit onto the call stacks anymore. In this case, you can either reduce the order/patch size, or you switch to a heap-based storage scheme, where the actual cell data resides on the stack and is moved around passing smart pointers.