bitpit
bitpit copied to clipboard
discretization: allow to define a pool for the weights
This will allow to re-use the weights and thus will reduce re-allocations.
There is now a separate class for discrete stencils that want to use a memory pool. In this way, if memory pool is not needed, we don't need to store an extra pointer.