[petsc-dev] sizeof(PetscInt) from buildsystem

Matthew Knepley knepley at gmail.com
Tue May 6 10:08:07 CDT 2014


On Tue, May 6, 2014 at 10:02 AM, Jed Brown <jed at jedbrown.org> wrote:

> 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.
>

1) The python2 requirement is easily changed

2) You could compress it all into one line. I wanted to show what was
happening.

3) It much more flexible, namespaced, and does not involve output files
which may change.

   Matt

-- 
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/20140506/9dda4a24/attachment.html>


More information about the petsc-dev mailing list