I recommend reading the makefile section of the manual. Briefly, you should<br>
at least use the bmake/common/variables makefile to get such things as<br>
PETSC_INCLUDE correct (that is the problem here), if not use the targets in<br>
bmake/common/rules. You could use our example makefiles as a guide.<br>
<br>
&nbsp;&nbsp; Thanks,<br>
<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Matt<br><br><div><span class="gmail_quote">On 6/1/06, <b class="gmail_sendername">Matt Funk</b> &lt;<a href="mailto:mafunk@nmsu.edu">mafunk@nmsu.edu</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for the replies,<br><br>the whole mpicc is a little system specific. It build the libraries after all,<br>so it's fine.<br><br>However, now i got another question. I link the libraries into my program, and<br>then in my top level code i include 
petscksp.h. When i try to compile it, it<br>gives me the following error:<br><br>In file included<br>from /home2/users/mafunk/AMR/PETSC/petsc-2.3.1-p12/include/petscis.h:7,<br><br>from /home2/users/mafunk/AMR/PETSC/petsc-
2.3.1-p12/include/petscvec.h:9,<br><br>from /home2/users/mafunk/AMR/PETSC/petsc-2.3.1-p12/include/petscmat.h:6,<br><br>from /home2/users/mafunk/AMR/PETSC/petsc-2.3.1-p12/include/petscpc.h:6,<br><br>from /home2/users/mafunk/AMR/PETSC/petsc-
2.3.1-p12/include/petscksp.h:6,<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; from testNodePoisson.cpp:65:<br>/home2/users/mafunk/AMR/PETSC/petsc-2.3.1-p12/include/petsc.h:13:23:<br>petscconf.h: No such file or directory<br><br>The only include directory that i have specified is /include in the petsc root
<br>directory. I couldn't find petscconf.h anywhere, so i was wondering if<br>somebody knows what i am doing wrong here.<br><br>thanks<br>mat<br><br><br>On Wednesday 31 May 2006 16:08, Matthew Knepley wrote:<br>&gt; You can have PETSc install MPI using --download-mpich. You can make
<br>&gt; sure that it does not use mpicc using --with-mpi-compilers=0.<br>&gt;<br>&gt;&nbsp;&nbsp;&nbsp;&nbsp;Matt<br>&gt;<br>&gt; On 5/31/06, Matt Funk &lt;<a href="mailto:mafunk@nmsu.edu">mafunk@nmsu.edu</a>&gt; wrote:<br>&gt; &gt; Hi,<br>
&gt; &gt;<br>&gt; &gt; i need to build PETsC on s sycld machine. Basically i need to have MPI<br>&gt; &gt; support<br>&gt; &gt; in PetsC but i need to switch from using mpicc to gcc.<br>&gt; &gt;<br>&gt; &gt; I was wondering if someone could point to how i can do that. (Is there an
<br>&gt; &gt; option that i overlooked?)<br>&gt; &gt;<br>&gt; &gt; thanks<br>&gt; &gt; mat<br><br></blockquote></div><br><br clear="all"><br>-- <br>&quot;Failure has a thousand explanations. Success doesn't need one&quot; -- Sir Alec Guiness