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>
Thanks,<br>
<br>
Matt<br><br><div><span class="gmail_quote">On 6/1/06, <b class="gmail_sendername">Matt Funk</b> <<a href="mailto:mafunk@nmsu.edu">mafunk@nmsu.edu</a>> 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> 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>> You can have PETSc install MPI using --download-mpich. You can make
<br>> sure that it does not use mpicc using --with-mpi-compilers=0.<br>><br>> Matt<br>><br>> On 5/31/06, Matt Funk <<a href="mailto:mafunk@nmsu.edu">mafunk@nmsu.edu</a>> wrote:<br>> > Hi,<br>
> ><br>> > i need to build PETsC on s sycld machine. Basically i need to have MPI<br>> > support<br>> > in PetsC but i need to switch from using mpicc to gcc.<br>> ><br>> > I was wondering if someone could point to how i can do that. (Is there an
<br>> > option that i overlooked?)<br>> ><br>> > thanks<br>> > mat<br><br></blockquote></div><br><br clear="all"><br>-- <br>"Failure has a thousand explanations. Success doesn't need one" -- Sir Alec Guiness