petsc-3.7.1 2016-05-15
Report Typos and Errors

# PetscBT

PETSc bitarrays

### Synopsis

    typedef char* PetscBT;

Many br

PetscBTCreate(m,&bt) - creates a bit array with enough room to hold m values Many brPetscBTDestroy(&bt) - destroys the bit array Many brPetscBTMemzero(m,bt) - zeros the entire bit array (sets all values to false) Many brPetscBTSet(bt,index) - sets a particular entry as true Many brPetscBTClear(bt,index) - sets a particular entry as false Many brPetscBTLookup(bt,index) - returns the value Many brPetscBTLookupSet(bt,index) - returns the value and then sets it true Many brPetscBTLookupClear(bt,index) - returns the value and then sets it false Many brPetscBTLength(m) - returns number of bytes in array with m bits Many brPetscBTView(m,bt,viewer) - prints all the entries in a bit array Many br

We do not currently check error flags on PetscBTSet(), PetscBTClear(), PetscBTLookup(), Many brPetcBTLookupSet(), PetscBTLength() cause error checking would cost hundreds more cycles then Many brthe operation. Many br

Level:advanced
Location:include/petscbt.h
Index of all Sys routines
Table of Contents for all manual pages
Index of all manual pages