[petsc-users] how is PETSC_MAX_PATH_LEN defined?

Ju LIU liujuy at gmail.com
Thu Mar 1 16:15:34 CST 2012


All right. Thanks, Satish!

Ju

2012/3/1 Satish Balay <balay at mcs.anl.gov>

> from include/petscsys.h
>
> >>>>>>>>>
> #if defined(PETSC_HAVE_LIMITS_H)
> #include <limits.h>
> #endif
> #if defined(PETSC_HAVE_SYS_PARAM_H)
> #include <sys/param.h>
> #endif
> #if defined(PETSC_HAVE_SYS_TYPES_H)
> #include <sys/types.h>
> #endif
> #if defined(MAXPATHLEN)
> #  define PETSC_MAX_PATH_LEN     MAXPATHLEN
> #elif defined(MAX_PATH)
> #  define PETSC_MAX_PATH_LEN     MAX_PATH
> #elif defined(_MAX_PATH)
> #  define PETSC_MAX_PATH_LEN     _MAX_PATH
> #else
> #  define PETSC_MAX_PATH_LEN     4096
> #endif
> <<<<<<<<<<<
>
> So usually the value is picked up from system include files via
> MAXPATHLEN etc - and if no value is found - it it set as 4096.
>
> Satish
>
> On Thu, 1 Mar 2012, Ju LIU wrote:
>
> > Hi:
> >
> > I am reading
> >
> http://www.mcs.anl.gov/petsc/petsc-current/src/mat/examples/tutorials/ex9.c.html
> >
> > I am curious about the value of PETSC_MAX_PATH_LEN.
> >
> > Thanks,
> >
> > Ju
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-users/attachments/20120301/aa8f65ac/attachment.htm>


More information about the petsc-users mailing list