[petsc-dev] size of PetscInt without grepping include
Matthew Knepley
knepley at gmail.com
Tue Oct 18 17:27:20 CDT 2011
On Tue, Oct 18, 2011 at 5:23 PM, Ethan Coon <ecoon at lanl.gov> wrote:
> 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?
>
If you are in Python, just load up the configuration directly. Take a look
at
bin/configVars.py
Matt
> 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/
> ------------------------------------
>
>
--
What most experimenters take for granted before they begin their experiments
is infinitely more interesting than any results to which their experiments
lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20111018/ad6e3df8/attachment.html>
More information about the petsc-dev
mailing list