negative indices in VecSetValuesLocal

Satish Balay balay at mcs.anl.gov
Tue Sep 23 11:10:23 CDT 2008


Use:

VecSetOption(vec,VEC_IGNORE_NEGATIVE_INDICES)

Satish


On Tue, 23 Sep 2008, Andrew T Barker wrote:

> 
> Upgrading to Petsc 2.3.3 from 2.3.2, it seems that where before VecSetValuesLocal would ignore negative numbers in the set of vector indices, now it complains "Argument out of range; Out of range index value -1 cannot be negative".  I've checked the LocalToGlobalMapping and everything is the same, it seems the Petsc version is the difference.  Is there a suggested workaround?  I'm afraid going through the array one by one will be slow.
> 
> Thanks,
> 
> Andrew
> 
> 




More information about the petsc-users mailing list