[petsc-users] PETSc 3.12 with .f90 files

Randall Mackie rlmackie862 at gmail.com
Tue Oct 29 11:24:27 CDT 2019


> On Oct 29, 2019, at 8:53 AM, Balay, Satish <balay at mcs.anl.gov> wrote:
> 
> On Tue, 29 Oct 2019, Randall Mackie via petsc-users wrote:
> 
>> Dear PETSc users:
>> 
>> In our code, we have one or two small .f90 files that are part of the software, and they have always compiled without any issues with previous versions of PETSc, using standard PETSc make files.
>> 
>> However, starting with PETSc 3.12, they no longer compile.
>> 
>> Was there some reasons for this change and any suggestion as to how to deal with this?
>> 
>> Thanks, Randy
> 
> 
> Hm - Looks like we did have something earlier - and there was some makefile reorg..
> 
>>> 
>      self.addMakeRule('.f.o .f90.o .f95.o','',['${PETSC_MAKE_STOP_ON_ERROR}${FC} -c ${FC_FLAGS} ${FFLAGS} -o $@ $<'])
> <<<
> 
> However - this should not be needed - as the default make targets should compile .f sources.


Hi Satish,

Unfortunately, the default make targets did not compile .f90 sources until I added that to the rules file as specified by Matt.

Thanks,

Randy

> 
> [We don't support using petsc from .f sources anyway - so the
> non-petsc .f sources should compile without petsc targets]
> 
> Satish
> 
> ----------
> 
> balay at sb /home/balay/tmp
> $ ls
> bug.f  makefile
> balay at sb /home/balay/tmp
> $ cat makefile 
> include ${PETSC_DIR}/lib/petsc/conf/variables
> include ${PETSC_DIR}/lib/petsc/conf/rules
> #include ${PETSC_DIR}/lib/petsc/conf/test
> 
> bug: bug.o
> balay at sb /home/balay/tmp
> $ make bug.o
> mpif90   -c -o bug.o bug.f
> balay at sb /home/balay/tmp
> $ 
> 
> 
> 



More information about the petsc-users mailing list