[petsc-dev] size of PetscInt without grepping include
Matthew Knepley
knepley at gmail.com
Tue Oct 18 18:11:13 CDT 2011
On Tue, Oct 18, 2011 at 6:03 PM, Ethan Coon <ecoon at lanl.gov> wrote:
> On Tue, 2011-10-18 at 17:54 -0500, Matthew Knepley wrote:
>
> >
> >
> > You would need the whole BuildSystem in order to interpret it (and
> > maybe the PETSc parts as well).
>
>
> Right, which defeats the purpose of having a python module that gets
> installed with PETSc to read/write binary files from python.
>
I don't think it defeats the purpose at all. We should be installing
BuildSystem.
I hate the idea of generated a whole bunch of custom, unsupported metadata
that will bitrot away in a year.
Matt
> I guess the way to get this info is to parse both petscconf.h and
> petscvariables to pull out datatypes used in the binary files. The
> matlab scripts doing binary IO require you to know this ahead of time,
> but that seems a little silly when we should be able to get this info
> from the installation. I just assumed that all of this would be defined
> somewhere in petscvariables.
>
> Ethan
>
> > I
> > don't think this is that bad. Python does not have the Java
> > serialization model.
> >
> >
> > Matt
> >
> >
> > Ethan
> >
> >
> >
> > > 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
> >
> > --
> > ------------------------------------
> > 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
>
> --
> ------------------------------------
> 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/6e1eade1/attachment.html>
More information about the petsc-dev
mailing list