[petsc-users] PETSC Makefile Problems in Fortran
Satish Balay
balay at mcs.anl.gov
Sun Aug 20 12:38:39 CDT 2017
PETSc requires fortran preprocessing - so you should rename your file as .F90
And you should be able to copy an example makefile (say
src/ksp/ksp/examples/tutorials) - and modify it as needed ( i.e modify
target 'ex1f' to 'main')
Satish
On Sun, 20 Aug 2017, Matthew Parkinson wrote:
> Dear Sir / Madam,
>
>
> I am having some trouble setting up a (basic) Makefile to use the PETSC codes. I have attempted to follow the various manuals and online resources, however I am clearly missing something. Could you possibly help me?
>
>
> The details are:
>
> Compiler: F95 (Fortran)
>
> PETSC Directory is: /home/t/mp826/phd/petsc/
>
>
> I am then trying to run a simple "Hello world" program, entitled main.f90, that constructs a PETSC Vec datatype (but does not use it). The main.f90 file is stored in the directory: /home/t/mp826/phd/test_petsc/.
>
>
> Any help would be very much appreciated.
>
> Kind Regards,
> Matthew Parkinson
>
More information about the petsc-users
mailing list