[petsc-users] petsc malloc multidimensional array
吕超
luchao at mail.iggcas.ac.cn
Tue Mar 11 08:37:52 CDT 2014
Hi, recently,when I use PETSc to bulid 2d arrays such as PetscScalar A[512][512],B[512][512],C,D,E,F,..., program always has error of Segmentation Violation. So I want to use PetscMalloc to bulid 2d array, and I hope that I can also use these 2d array A[i][j] by subscripts as before. Could do please tell me how can I do? Thank you.
LV CHAO
2014/3/11
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140311/65994fe5/attachment.html>
More information about the petsc-users
mailing list