How to solve an equation with an array data

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