On Sat, Oct 1, 2011 at 12:40 PM, Jed Brown <span dir="ltr"><<a href="mailto:jedbrown@mcs.anl.gov">jedbrown@mcs.anl.gov</a>></span> wrote:<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Matt, I want to add an example that shows ways to manage callback contexts from C++. It should work with a normal C build of PETSc (as long as a C++ compiler was detected). This means that the compilation rule in the makefile<div>

<br></div><div>.c.o .cpp.o .cxx.o .cc.o .C.o .ad.o:</div><div><br></div><div>should be split apart into</div><div><br></div><div>.c.o:</div><div><br></div><div>and</div><div><br></div><div>.cpp.o .cxx.o .cc.o .C.o:</div>
<div>
<br></div><div>The latter will use the C++ compiler any time it is available. In the current model, this means that we should define PCXX in petscvariables.</div></blockquote><div><br></div><div>I see no problem with that.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><div><br></div><div>Also, can we finally properly namespace everything in petscvariables? We can have a different include that has a bunch of lines like</div>

<div><br></div><div>CC = ${PETSC_C_COMPILER}</div><div>CFLAGS = ${PETSC_C_FLAGS}</div><div>AR = ${PETSC_AR}</div><div><br></div><div>in case the user wants to import all our variables into the global namespace.</div>
</blockquote></div><br>I have no problem with that either. I am really not using make to build anymore.<div><br></div><div>   Matt<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<br>
</div>