<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Nov 20, 2013 at 6:48 PM, Justin Dong (Me) <span dir="ltr"><<a href="mailto:jsd1@rice.edu" target="_blank">jsd1@rice.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word">Hi all,<div><br></div><div>I’ve just installed PETSc and it seems that I don’t get any errors. I type “make” from the command line and this is the end bit of the result:</div><div><br></div>
<div><div style="margin:0px;font-size:11px;font-family:Menlo"></div><blockquote type="cite"><div style="margin:0px;font-size:11px;font-family:Menlo">==========================================</div><div style="margin:0px;font-size:11px;font-family:Menlo">
Building PETSc using CMake with 5 build threads</div><div style="margin:0px;font-size:11px;font-family:Menlo">==========================================</div><div style="margin:0px;font-size:11px;font-family:Menlo">Re-run cmake file: Makefile older than: ../CMakeLists.txt</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">-- Configuring done</div><div style="margin:0px;font-size:11px;font-family:Menlo">-- Generating done</div><div style="margin:0px;font-size:11px;font-family:Menlo">-- Build files have been written to: /Users/[…]/Classes/CAAMResearch/petsc-3.4.3/arch-darwin-c-debug</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">[100%] Built target petsc</div><div style="margin:0px;font-size:11px;font-family:Menlo">Running /usr/bin/dsymutil on libpetsc</div><div style="margin:0px;font-size:11px;font-family:Menlo">
=========================================</div><div style="margin:0px;font-size:11px;font-family:Menlo">Now to check if the libraries are working do:</div><div style="margin:0px;font-size:11px;font-family:Menlo">make PETSC_DIR=/Users/[…]/Classes/CAAMResearch/petsc-3.4.3 PETSC_ARCH=arch-darwin-c-debug test</div>
</blockquote><br></div><div>and if I run the command it tells me to after that, I get:</div><div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo"></div><blockquote type="cite"><div style="margin:0px;font-size:11px;font-family:Menlo">
C/C++ example src/snes/examples/tutorials/ex19 run successfully with 1 MPI process</div><div style="margin:0px;font-size:11px;font-family:Menlo">C/C++ example src/snes/examples/tutorials/ex19 run successfully with 2 MPI processes</div>
<div style="margin:0px;font-size:11px;font-family:Menlo">Fortran example src/snes/examples/tutorials/ex5f run successfully with 1 MPI process</div><div style="margin:0px;font-size:11px;font-family:Menlo">Completed test examples</div>
</blockquote><br></div><div>I try this example (<a href="http://www.mcs.anl.gov/petsc/documentation/exercises/compiling/index.html" target="_blank">http://www.mcs.anl.gov/petsc/documentation/exercises/compiling/index.html</a>) and get this error:</div>
<div><br></div><div><div style="margin:0px;font-size:11px;font-family:Menlo"></div><blockquote type="cite"><div style="margin:0px;font-size:11px;font-family:Menlo">cc     ex2.c   -o ex2</div><div style="margin:0px;font-size:11px;font-family:Menlo">
<b>ex2.c:13:10: </b><span style="color:#c33720"><b>fatal error: </b></span><b>'petscsys.h' file not found</b></div><div style="margin:0px;font-size:11px;font-family:Menlo">#include <petscsys.h></div><div style="margin:0px;font-size:11px;font-family:Menlo;color:rgb(52,189,38)">
<b>         ^</b></div><div style="margin:0px;font-size:11px;font-family:Menlo">1 error generated.</div><div style="margin:0px;font-size:11px;font-family:Menlo">make: *** [ex2] Error </div></blockquote></div></div></blockquote>
<div><br></div><div>There is a chapter in the manual on using PETSc makefiles</div><div><br></div><div>  Thanks</div><div><br></div><div>    Matt</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div style="word-wrap:break-word"><div>I’m working in the PETSc directory so I don’t think it’s an issue with setting the path, but I’m not that great at all of the architecture stuff. If anyone can assist, I’d be grateful.</div>
<div><br></div><div>Thanks,</div><div>Justin</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br>What most experimenters take for granted before they begin their experiments is infinitely more interesting than any results to which their experiments lead.<br>
-- Norbert Wiener
</div></div>