All right. Thanks, Satish!<br><br>Ju<br><br><div class="gmail_quote">2012/3/1 Satish Balay <span dir="ltr"><<a href="mailto:balay@mcs.anl.gov">balay@mcs.anl.gov</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
from include/petscsys.h<br>
<br>
>>>>>>>>><br>
#if defined(PETSC_HAVE_LIMITS_H)<br>
#include <limits.h><br>
#endif<br>
#if defined(PETSC_HAVE_SYS_PARAM_H)<br>
#include <sys/param.h><br>
#endif<br>
#if defined(PETSC_HAVE_SYS_TYPES_H)<br>
#include <sys/types.h><br>
#endif<br>
#if defined(MAXPATHLEN)<br>
# define PETSC_MAX_PATH_LEN MAXPATHLEN<br>
#elif defined(MAX_PATH)<br>
# define PETSC_MAX_PATH_LEN MAX_PATH<br>
#elif defined(_MAX_PATH)<br>
# define PETSC_MAX_PATH_LEN _MAX_PATH<br>
#else<br>
# define PETSC_MAX_PATH_LEN 4096<br>
#endif<br>
<<<<<<<<<<<<br>
<br>
So usually the value is picked up from system include files via<br>
MAXPATHLEN etc - and if no value is found - it it set as 4096.<br>
<span class="HOEnZb"><font color="#888888"><br>
Satish<br>
</font></span><div class="HOEnZb"><div class="h5"><br>
On Thu, 1 Mar 2012, Ju LIU wrote:<br>
<br>
> Hi:<br>
><br>
> I am reading<br>
> <a href="http://www.mcs.anl.gov/petsc/petsc-current/src/mat/examples/tutorials/ex9.c.html" target="_blank">http://www.mcs.anl.gov/petsc/petsc-current/src/mat/examples/tutorials/ex9.c.html</a><br>
><br>
> I am curious about the value of PETSC_MAX_PATH_LEN.<br>
><br>
> Thanks,<br>
><br>
> Ju<br>
><br>
<br>
</div></div></blockquote></div><br>