[petsc-dev] compiling PETSc Fortran program with modules

Adrian Croucher a.croucher at auckland.ac.nz
Thu Jun 5 00:56:44 CDT 2014


OK, I found one way around this- if in test.F90 I replace

   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




More information about the petsc-dev mailing list