[petsc-dev] sizeof(PetscInt) from buildsystem

Jed Brown jed at jedbrown.org
Tue May 6 10:02:04 CDT 2014


Matthew Knepley <knepley at gmail.com> writes:
> You can query the configure database using Python. Here is a sample
> that reads the integer size and a few other things. Why the hell would
> anyone suggest grep?

Because it is one line, human readable, and I have confidence that the
interface is stable.  Your python is 30-some lines, depends on about a
dozen objects, and requires python2.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140506/9fd91af4/attachment.sig>


More information about the petsc-dev mailing list