[petsc-dev] PetscFindInt

Jed Brown jedbrown at mcs.anl.gov
Sat Sep 22 17:39:33 CDT 2012


On Sat, Sep 22, 2012 at 5:37 PM, Blaise A Bourdin <bourdin at lsu.edu> wrote:

> I'm not sure if I'm following the whole discussion but isn't the index
> fortran intrinsic the equivalent of this PetscFindInt? (Modulo returning a
> negative value) In which case, not having a fortran binding would not be a
> big deal.


As far as I know, Fortran index() is like C's strstr() and has nothing to
do with searching a sorted array of integers.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120922/38882ed7/attachment.html>


More information about the petsc-dev mailing list