Skip to content
Advertisement

Tag: petsc

Convert a list of Vector to a matrix with petsc4py

I have a list of vectors that I want to gather in a single matrix Z. Here is the code I tried to use : I tried setValues and setValuesBlocked. When I run this script on one core, that works well. The result printed is : but in parallel I have issues : I think it’s because PetSc waits for

Advertisement