PETSc-FUN3D Code

Barry Smith bsmith at mcs.anl.gov
Sat Oct 20 17:04:52 CDT 2007


  If size_t is not found, then config/configure.py should stop
and tell the user that their system is messed up. Fortunately this
is not a problem.

   Barry




On Sat, 20 Oct 2007, Matthew Knepley wrote:

> I actually like the autoconf solution. If the type is not found (size_t)
> then just typedef it as something.
> 
>    Matt
> 
> On 10/20/07, Barry Smith <bsmith at mcs.anl.gov> wrote:
> >
> >   Satish,
> >
> >    I don't know; there are pros and cons to the two
> > approaches.
> >
> >    Why not PetscSize_T? I admit both look stupid, but the
> > _ at least matches the standard C style.
> >
> >   Any comments from the community?
> >
> >   Barry
> >
> >
> >
> >     I would like to keep size_t as the argument
> >
> > On Sat, 20 Oct 2007, Satish Balay wrote:
> >
> > > On Fri, 19 Oct 2007, Dinesh Kaushik wrote:
> > >
> > > > > > Perhaps need a PetscSizeT or some new datatype for this purpose that
> > > > > > gets set correct for both C & fortran side..
> > >
> > > Barry,
> > >
> > > Is it ok to do this change? The prototypes of the following functions
> > > will need to be changed to use PetscSizeT instead of size_t;
> > >
> > > [alternative is to use size_t on the C side - but PetscSizeT on the
> > > fortran side - but this is inconsistant]
> > >
> > > thanks,
> > > Satish
> > >
> > > -------------------
> > > PetscBagCreate
> > > PetscFileRetrieve
> > > PetscGetArchType
> > > PetscGetDate
> > > PetscGetDisplay
> > > PetscGetFullPath
> > > PetscGetHomeDirectory
> > > PetscGetHostName
> > > PetscGetProgramName
> > > PetscGetRelativePath
> > > PetscGetTmp
> > > PetscGetUserName
> > > PetscGetWorkingDirectory
> > > PetscLs
> > > PetscMalloc
> > > PetscMalloc2
> > > PetscMalloc3
> > > PetscMalloc4
> > > PetscMalloc5
> > > PetscMalloc6
> > > PetscMalloc7
> > > PetscMemcmp
> > > PetscMemcpy
> > > PetscMemmove
> > > PetscMemzero
> > > PetscOptionsGetenv
> > > PetscOptionsGetString
> > > PetscOptionsString
> > > PetscSetMalloc
> > > PetscSNPrintf
> > > PetscStrlen
> > > PetscStrncat
> > > PetscStrncmp
> > > PetscStrncpy
> > > PetscStrreplace
> > > PetscSynchronizedFGets
> > > PetscVSNPrintf
> > >
> > >
> >
> >
> 
> 
> 




More information about the petsc-dev mailing list