[petsc-users] VecScatter Error w/Multiple Processors
Arthur Kurlej
akurlej at gmail.com
Tue Jul 1 12:04:12 CDT 2014
Hello,
I am trying to use VecScatter to grab values from nonlocal processors, and
I've run into the following error when I try to run for 8+ processors. The
error is as follows:
[0]PETSC ERROR: VecScatterCreate() line 1161 in src/vec/vec/utils/vscat.c
And the code that causes it is
Mat A
MatGetOwnershipRange(A,&Istart,&Iend);
for(rowcounter = Istart; rowcounter < Iend; rowcounter++){
ISCreateGeneral(PETSC_COMM_WORLD,lSize,vecIndices,PETSC_COPY_VALUES,&isGlobal);
VecScatterCreate(gVec,isGlobal,lVec, NULL,&ctx);
VecScatterBegin(ctx,gVec,lVec,INSERT_VALUES,SCATTER_FORWARD);
VecScatterEnd(ctx,gVec,lVec,INSERT_VALUES,SCATTER_FORWARD);
//fill matrix
}
Any thoughts?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20140701/8740faa7/attachment.html>
More information about the petsc-users
mailing list