Re: [petsc-users] Python version of VecDuplicateVecs

2023-07-19 Thread Matthew Knepley
On Wed, Jul 19, 2023 at 7:59 AM Karsten Bolding < kars...@bolding-bruggeman.com> wrote: > Hello > > I'm re-implementing a model from mixed C/Fortran to Python where Petsc is > used for matrix/vector operations. > > In the C-code I have: > ierr = VecDuplicateVecs(templateVec,numTracers,); > to

[petsc-users] Python version of VecDuplicateVecs

2023-07-19 Thread Karsten Bolding
Hello I'm re-implementing a model from mixed C/Fortran to Python where Petsc is used for matrix/vector operations. In the C-code I have: ierr = VecDuplicateVecs(templateVec,numTracers,); to create uef with numTracers vectors. Later in the code looping is done of the individual vectors and a