[petsc-users] Python version of VecDuplicateVecs
Karsten Bolding
karsten at bolding-bruggeman.com
Wed Jul 19 06:58:31 CDT 2023
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,&uef);
to create uef with numTracers vectors.
Later in the code looping is done of the individual vectors and a sequence
of operations are performed.
I would like to follow the same idea in Python - but do not find any
example.
An alternative would be to make a list of Vecs?
Best Regards,
Karsten
--
Karsten Bolding
karsten at bolding-bruggeman.com
+4564422058
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20230719/f2f97729/attachment.html>
More information about the petsc-users
mailing list