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?