[petsc-users] Question regadring VecScatter

Bisht, Gautam bishtg at ornl.gov
Thu Jun 14 08:07:50 CDT 2012


Thanks, Tabrez.

The local size of IS (is_from and is_to) need to of same length.

-Gautam.

On Jun 13, 2012, at 11:02 PM, Tabrez Ali wrote:

> I think ncells_from and ncells_to have to be the same size
> 
> On 06/13/2012 06:41 PM, Bisht, Gautam wrote:
>> Hi,
>> 
>> I'm getting an error while creating a VecScatter for a MPI vector to another MPI vector.
>> 
>> 'vec_from' has 3 elements (1 on proc-0 and 2 on proc-1)
>> 'vec_to' has 3 elements (2 on proc-0 and 1 on proc-1)
>> 
>> I want to scatter forward elements of 'vec_from' to 'vec_to' and am using IS to create the VecScatterCreate. Attached is the code.
>> 
>> mpiexec -n 2 ./vecscatter_test
>> produces
>> [0]PETSC ERROR: --------------------- Error Message ------------------------------------
>> [0]PETSC ERROR: Nonconforming object sizes!
>> [0]PETSC ERROR: Local scatter sizes don't match!
>> [0]PETSC ERROR: ------------------------------------------------------------------------
>> Any ideas what's going wrong?
>> 
>> Thanks,
>> -Gautam.
> 



More information about the petsc-users mailing list