changing array from ISGetIndices
Andrew T Barker
Andrew.Barker at Colorado.EDU
Fri Sep 12 15:09:04 CDT 2008
The man page for ISGetIndices says "The user should NOT change the indices." But in this example
http://www-unix.mcs.anl.gov/petsc/petsc-as/snapshots/petsc-current/src/dm/ao/examples/tutorials/ex2.c.html
around line 507 you do change indices you get from ISGetIndices. I'm trying to adapt this example to my own needs and am wondering if this may be causing me problems. In particular I go through this section of code twice (to partition two chunks of data) and the second time the ISCreateBlock makes a segfault.
Thanks,
Andrew
---
Andrew T. Barker
andrew.barker at colorado.edu
Applied Math Department
University of Colorado, Boulder
526 UCB, Boulder, CO 80309-0526
More information about the petsc-users
mailing list