On Jan 4, 2012, at 3:17 PM, Jed Brown wrote: > On Wed, Jan 4, 2012 at 15:13, Blaise Bourdin <bourdin at lsu.edu> wrote: > 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 > cf attached patch for src/vec/examples/tutorial/ex1f90.F > > From the patch, I assume you already know about these? > > PETSC_USE_FORTRAN_INTERFACES > PETSC_USE_FORTRAN_DATATYPES
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? If so, the changes to the examples are much smaller that I thought and the following should suffice Blaise -- Department of Mathematics and Center for Computation & Technology Louisiana State University, Baton Rouge, LA 70803, USA Tel. +1 (225) 578 1612, Fax +1 (225) 578 4276 http://www.math.lsu.edu/~bourdin -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120104/7db0f469/attachment.html> -------------- next part -------------- A non-text attachment was scrubbed... Name: fortran2.patch Type: application/octet-stream Size: 2680 bytes Desc: not available URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120104/7db0f469/attachment.obj> -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20120104/7db0f469/attachment-0001.html>
