Re: [petsc-dev] field split error

2013-09-28 Thread Jed Brown
"Mark F. Adams" writes: >> >> An IS can start at any number, > > Can it start with a negative number in PETSc? Not for all uses, but I don't think there is anything in the IS code that prevents it and it could be useful to discard/skip some entries. pgp30jhgDVgqh.pgp Description: PGP signatu

Re: [petsc-dev] field split error

2013-09-28 Thread Mark F. Adams
> > An IS can start at any number, Can it start with a negative number in PETSc?

Re: [petsc-dev] field split error

2013-09-28 Thread Jed Brown
"Mark F. Adams" writes: >> >>> This is a sort of sensible number. >> >> Nonsense! PETSc and C both use 0-based indexing consistently. This is >> not a Fortran interface. > > I meant it is a valid number. An IS can start at 1. An IS can start at any number, but this one starts at 0 and whe

Re: [petsc-dev] field split error

2013-09-28 Thread Mark F. Adams
> >> This is a sort of sensible number. > > Nonsense! PETSc and C both use 0-based indexing consistently. This is > not a Fortran interface. I meant it is a valid number. An IS can start at 1.

Re: [petsc-dev] field split error

2013-09-28 Thread Jed Brown
"Mark F. Adams" writes: >>> >>> No idea. Do you want me to find out? What should a general IS return >>> as 'start'? >> >> ISStrideGetInfo does not dispatch through dynamically registered functionals. >> >> PetscErrorCode ISStrideGetInfo(IS is,PetscInt *first,PetscInt *step) >> { >> IS_St