[petsc-dev] size of PetscInt without grepping include

Ethan Coon ecoon at lanl.gov
Tue Oct 18 17:23:52 CDT 2011


Ok, but that's not in petscvariables.  Maybe I should be clearer -- I'm
trying to make the python scripts for binary IO pull the default
configuration from the PETSC_DIR/PETSC_ARCH, so that binary files can be
in the correct format.  

To get the precision, I use python to parse petscvariables to get
PETSC_PRECISION, and use that to set the numpy datatype needed to
read/write the binary correctly.  I'm looking for a way to get, within
python, whether or not PETSC_USE_64BIT_INDICES is defined or not.  It
looks like it doesn't get defined until petscconf.h is included.

Is there a single place where these (and the real/complex variable) are
all defined?

Ethan

On Tue, 2011-10-18 at 16:24 -0500, Barry Smith wrote:
> PETSC_USE_64BIT_INDICES
-- 
------------------------------------
Ethan Coon
Post-Doctoral Researcher
Applied Mathematics - T-5
Los Alamos National Laboratory
505-665-8289

http://www.ldeo.columbia.edu/~ecoon/
------------------------------------




More information about the petsc-dev mailing list