[petsc-dev] compiling PETSc Fortran program with modules
Matthew Knepley
knepley at gmail.com
Thu Jun 5 06:14:28 CDT 2014
On Thu, Jun 5, 2014 at 12:56 AM, Adrian Croucher <a.croucher at auckland.ac.nz>
wrote:
> OK, I found one way around this- if in test.F90 I replace
>
Can you try just using the finclude/petscdef.h90 headers in the module?
Thanks,
Matt
> use my_module
>
> with
>
> use my_module, only : foo
>
> it works.
>
> I'm not sure how practical that's going to be with real code though (e.g.
> a big module and I want to use lots of things in it). Are there any better
> ways?
>
>
> - Adrian
>
> --
> Dr Adrian Croucher
> Senior Research Fellow
> Department of Engineering Science
> University of Auckland, New Zealand
> email: a.croucher at auckland.ac.nz
> tel: +64 (0)9 923 4611
>
>
--
What most experimenters take for granted before they begin their
experiments is infinitely more interesting than any results to which their
experiments lead.
-- Norbert Wiener
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/petsc-dev/attachments/20140605/bfe2f3db/attachment.html>
More information about the petsc-dev
mailing list