mdolab / pyhyp

pyHyp generates volume meshes from surface meshes using hyperbolic marching.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't compile with '-std=f2008'

DavidAnderegg opened this issue · comments

Description

Basically the same as: mdolab/idwarp#70

Steps to reproduce issue

  1. Try compiling it with the default 'config.LINUX_GFORTRAN_OPENMPI.mk'

Current behavior

...
make     src_2
make[3]: Entering directory '/home/andv/Downloads/MACH/pyhyp/src/modules'
../../rulesSources.mk:43: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:43: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:31: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:31: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:37: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:37: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:31: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:31: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:37: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:37: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:25: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:25: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:19: warning: ignoring prerequisites on suffix rule definition
../../rulesSources.mk:19: warning: ignoring prerequisites on suffix rule definition
mpifort -I../../mod -I/home/andv/.mamba/envs/MACH/external/cgns/include -I/home/andv/.mamba/envs/MACH/external/hdf5/include -fPIC -std=f2008 -fdefault-real-8 -O2 -I/home/andv/.mamba/envs/MACH/external/petsc/include -I/home/andv/.mamba/envs/MACH/external/petsc/ -c communication.F90 -o ../../obj/communication.o

        --- Compiled communication.F90 successfully ---

mpifort -I../../mod -I/home/andv/.mamba/envs/MACH/external/cgns/include -I/home/andv/.mamba/envs/MACH/external/hdf5/include -fPIC -std=f2008 -fdefault-real-8 -O2 -I/home/andv/.mamba/envs/MACH/external/petsc/include -I/home/andv/.mamba/envs/MACH/external/petsc/ -c hypInput.f90 -o ../../obj/hypInput.o

        --- Compiled hypInput.f90 successfully ---

mpifort -I../../mod -I/home/andv/.mamba/envs/MACH/external/cgns/include -I/home/andv/.mamba/envs/MACH/external/hdf5/include -fPIC -std=f2008 -fdefault-real-8 -O2 -I/home/andv/.mamba/envs/MACH/external/petsc/include -I/home/andv/.mamba/envs/MACH/external/petsc/ -c hypData.F90 -o ../../obj/hypData.o
hypData.F90:4:6:

    4 |   use petsc
      |      1
Error: GNU Extension: Variable ‘petsc_comm_self’ at (1) is in COMMON but only in BLOCK DATA initialization is allowed
hypData.F90:4:6:

    4 |   use petsc
      |      1
Error: GNU Extension: Variable ‘petsc_comm_world’ at (1) is in COMMON but only in BLOCK DATA initialization is allowed
make[3]: *** [../../rulesSources.mk:19: hypData.o] Error 1
make[3]: Leaving directory '/home/andv/Downloads/MACH/pyhyp/src/modules'
make[2]: *** [Makefile:31: all] Error 2
make[2]: Leaving directory '/home/andv/Downloads/MACH/pyhyp/src/modules'
make[1]: *** [Makefile:46: hyp] Error 1
make[1]: Leaving directory '/home/andv/Downloads/MACH/pyhyp'
make: *** [Makefile:16: default] Error 2

Expected behavior

It should compile with default flags.

Code versions

  • Operating System: linux
  • Python: 3.9
  • OpenMPI: 4.1.2
  • CGNS: 4.2
  • PETSc: 3.15
  • This software: