[petsc-dev] sizeof(PetscInt) from buildsystem

Matthew Knepley knepley at gmail.com
Tue May 6 09:57:02 CDT 2014


On Tue, May 6, 2014 at 9:54 AM, Satish Balay <balay at mcs.anl.gov> wrote:

> On Tue, 6 May 2014, Garth N. Wells wrote:
>
> > On 2014-05-06 10:12, Jed Brown wrote:
> > > r<#secure method=pgpmime mode=sign>
> > > "Garth N. Wells" <gnw20 at cam.ac.uk> writes:
> > > > Not ideal, and I guess it's not platform-independent, i.e. Windows.
> > > >
> > > > I could build a trivial program that printfs sizeof(PetscInt), but my
> > > > first preference would be to extend our current approach using make
> and
> > > > petscvariables.
> > >
> > > Is make running on windows without grep?
> > >
> >
> > I don't know - that's why I used 'guess'.
>
> PETSc makefiles use unix tools extensively [like grep and others] - so
> if this basic infrastructure is missing - makefiles won't work.
>
> [hence the reliance on cygwin - to install PETSc on windows]


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?

   Matt


>
> Satish
>



-- 
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/ea9eeee6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: configVars.py
Type: text/x-python-script
Size: 1136 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140506/ea9eeee6/attachment.bin>


More information about the petsc-dev mailing list