Hi petsc devs and users, Is there an analogue to reshape as in the fortran / matlab functions for petsc arrays? i am looking into converting a 3D DMDA array of (nx,ny,nz) sizes into a 2D MATMPI matrix of size (nx) x (ny) x (nz) by (nx) x (ny) x (nz), that will be used as the laplacian matrix in a linear solver, which will change in every iteration, so is easier to calculate in 3D and convert.
Thanks for your help,