Hi, I think instead of using numpy array you should use PETSc, therefore please consider reading Conversion from array to PETSc and from PETSc to array.
1 Like
Hi, I think instead of using numpy array you should use PETSc, therefore please consider reading Conversion from array to PETSc and from PETSc to array.