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 [email protected] +4564422058
