<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On Jan 4, 2012, at 3:17 PM, Jed Brown wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div class="gmail_quote">On Wed, Jan 4, 2012 at 15:13, Blaise Bourdin <span dir="ltr"><<a href="mailto:bourdin@lsu.edu">bourdin@lsu.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div id=":69j">Is there a preprocessor variable indicating if petsc is compiled with fortran modules? I would like to update some of these examples following the lines of src/vec/vec/examples/tutorials/ex20f90.F90<br>
cf attached patch for src/vec/examples/tutorial/ex1f90.F</div></blockquote></div><div><br></div><div>From the patch, I assume you already know about these?</div><br><div>PETSC_USE_FORTRAN_INTERFACES</div><div>PETSC_USE_FORTRAN_DATATYPES</div>
</blockquote></div><div><br></div><div><br></div>I knew about the later, not the former. Can one still use fortran modules (option 3 in UsingFortran) if PETSC_USE_FORTRAN_INTERFACES is set?<div><br></div><div>If so, the changes to the examples are much smaller that I thought and the following should suffice</div><div></div></body></html>