[petsc-dev] sizeof(PetscInt) from buildsystem
Aron Ahmadia
aron at ahmadia.net
Tue May 6 08:46:57 CDT 2014
One way to do this is to consult the reconfigure-* script. If
the -with-64-bit-indices flag is set, then you've got 64-bit ints.
Otherwise, you've got 32-bit ints.
Any particular reason petsc4py doesn't work for you here? Lisandro wrote
some rather sophisticated parsing of the PETSc install as part of the
petsc4py configuration (which is mostly Cython-driven).
A
On Tue, May 6, 2014 at 8:39 AM, Garth N. Wells <gnw20 at cam.ac.uk> wrote:
> It would be handy if I could get sizeof(PetscInt) from conf/petscvariables
> or something similar. Would this be feasible or is it already easily
> accessible without building code? (The motivation is to create static SWIG
> typemaps for NumPy arrays - at the moment I'm picking the right typemap at
> runtime).
>
> Garth
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140506/2b6b5905/attachment.html>
More information about the petsc-dev
mailing list