[petsc-users] Question regadring VecScatter

Tabrez Ali stali at geology.wisc.edu
Thu Jun 14 08:56:05 CDT 2012


Yes. See Figure 11 in the manual and the accompanying text at the bottom.

On 06/14/2012 08:07 AM, Bisht, Gautam wrote:
> 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.


-- 
No one trusts a model except the one who wrote it; Everyone trusts an observation except the one who made it- Harlow Shapley



More information about the petsc-users mailing list