"Kong, Fande" <[email protected]> writes: > Hi, > > For mechanics problems, the contact surface changes during each nonlinear > iteration. Therefore, the sparsity of matrix also changes during each > nonlinear iteration. We know the preallocaiton is important for performance. > > My question is: it is possible to re-allocate memory during each nonlinear > iteration?
Sure, call MatXAIJSetPreallocation inside your SNES Jacobian function.
signature.asc
Description: PGP signature
