[petsc-users] MatPrealloctor

Barry Smith bsmith at petsc.dev
Thu Jul 28 16:49:02 CDT 2022


   I am not sure what you are asking exactly but I think so, so long have you have called MatSetLocalToGlobalMapping() and the "stencil" idea makes sense for your discretization.

  Barry


> On Jul 28, 2022, at 5:41 PM, Randall Mackie <rlmackie862 at gmail.com> wrote:
> 
> Dear PETSc users:
> 
> Can one use a MatPreallocator and then call MatPreAlloctorPreallocate if using MatStencil routines (which seem to call MatSetValuesLocal).
> 
> 
> Thanks, Randy



More information about the petsc-users mailing list