Re: [petsc-users] How to decompose and record a constant A

2019-04-09 Thread Smith, Barry F. via petsc-users
> On Apr 9, 2019, at 3:33 AM, Mark Adams via petsc-users > wrote: > > PETSc solvers will cache any setup computations, like a matrix factorization, > and will reuse them on subsequent solves. > > If you call KSPSetOperators, PETSc will assume its cache is invalid and redo > any required

Re: [petsc-users] How to decompose and record a constant A

2019-04-09 Thread Mark Adams via petsc-users
PETSc solvers will cache any setup computations, like a matrix factorization, and will reuse them on subsequent solves. If you call KSPSetOperators, PETSc will assume its cache is invalid and redo any required setup on subsequent solves. Mark On Tue, Apr 9, 2019 at 4:08 AM ztdepyahoo via

[petsc-users] How to decompose and record a constant A

2019-04-09 Thread ztdepyahoo via petsc-users
Dear group:       I need to solve a Laplacian problem Ax=b every time step where A is a constant . I want to store the inverse of A at the first time step. how to do with Petsc Regards