diff --git a/src/HDF5_utilities.f90 b/src/HDF5_utilities.f90 index eab1ca73f..ee1e3cf8c 100644 --- a/src/HDF5_utilities.f90 +++ b/src/HDF5_utilities.f90 @@ -18,7 +18,11 @@ module HDF5_utilities use prec use parallelization +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private !-------------------------------------------------------------------------------------------------- diff --git a/src/grid/DAMASK_grid.f90 b/src/grid/DAMASK_grid.f90 index c36a4eeb2..dbaa668c2 100644 --- a/src/grid/DAMASK_grid.f90 +++ b/src/grid/DAMASK_grid.f90 @@ -30,7 +30,11 @@ program DAMASK_grid use grid_thermal_spectral use results +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif type :: tLoadCase type(tRotation) :: rot !< rotation of BC diff --git a/src/grid/discretization_grid.f90 b/src/grid/discretization_grid.f90 index 565695bb8..682a3e5b2 100644 --- a/src/grid/discretization_grid.f90 +++ b/src/grid/discretization_grid.f90 @@ -23,7 +23,11 @@ module discretization_grid use discretization use geometry_plastic_nonlocal +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private integer, dimension(3), public, protected :: & diff --git a/src/grid/grid_damage_spectral.f90 b/src/grid/grid_damage_spectral.f90 index 55e442106..8b544ec87 100644 --- a/src/grid/grid_damage_spectral.f90 +++ b/src/grid/grid_damage_spectral.f90 @@ -22,7 +22,11 @@ module grid_damage_spectral use YAML_types use config +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private type :: tNumerics diff --git a/src/grid/grid_mech_FEM.f90 b/src/grid/grid_mech_FEM.f90 index 4734d87a2..1040d6fb7 100644 --- a/src/grid/grid_mech_FEM.f90 +++ b/src/grid/grid_mech_FEM.f90 @@ -27,7 +27,12 @@ module grid_mechanical_FEM use discretization use discretization_grid + +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private type(tSolutionParams) :: params diff --git a/src/grid/grid_mech_spectral_basic.f90 b/src/grid/grid_mech_spectral_basic.f90 index a9582ebb9..dec677df8 100644 --- a/src/grid/grid_mech_spectral_basic.f90 +++ b/src/grid/grid_mech_spectral_basic.f90 @@ -26,7 +26,11 @@ module grid_mechanical_spectral_basic use homogenization use discretization_grid +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private type(tSolutionParams) :: params diff --git a/src/grid/grid_mech_spectral_polarisation.f90 b/src/grid/grid_mech_spectral_polarisation.f90 index c6d3c82e2..d0d229c46 100644 --- a/src/grid/grid_mech_spectral_polarisation.f90 +++ b/src/grid/grid_mech_spectral_polarisation.f90 @@ -26,7 +26,11 @@ module grid_mechanical_spectral_polarisation use homogenization use discretization_grid +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private type(tSolutionParams) :: params diff --git a/src/grid/grid_thermal_spectral.f90 b/src/grid/grid_thermal_spectral.f90 index 391d80b9d..ff0c5b403 100644 --- a/src/grid/grid_thermal_spectral.f90 +++ b/src/grid/grid_thermal_spectral.f90 @@ -25,7 +25,11 @@ module grid_thermal_spectral use YAML_types use config +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private type :: tNumerics diff --git a/src/grid/spectral_utilities.f90 b/src/grid/spectral_utilities.f90 index 9bd0a2348..aa2ed1de9 100644 --- a/src/grid/spectral_utilities.f90 +++ b/src/grid/spectral_utilities.f90 @@ -22,7 +22,12 @@ module spectral_utilities use discretization use homogenization + +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private !-------------------------------------------------------------------------------------------------- diff --git a/src/mesh/FEM_utilities.f90 b/src/mesh/FEM_utilities.f90 index 60a95d83c..4d24a10b3 100644 --- a/src/mesh/FEM_utilities.f90 +++ b/src/mesh/FEM_utilities.f90 @@ -21,7 +21,11 @@ module FEM_utilities use homogenization use FEM_quadrature +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private logical, public :: cutBack = .false. !< cut back of BVP solver in case convergence is not achieved or a material point is terminally ill diff --git a/src/mesh/discretization_mesh.f90 b/src/mesh/discretization_mesh.f90 index fe101ba6b..ad358e40b 100644 --- a/src/mesh/discretization_mesh.f90 +++ b/src/mesh/discretization_mesh.f90 @@ -25,7 +25,11 @@ module discretization_mesh use YAML_types use prec +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private integer, public, protected :: & diff --git a/src/mesh/mesh_mech_FEM.f90 b/src/mesh/mesh_mech_FEM.f90 index 22af0a709..90c3aa31e 100644 --- a/src/mesh/mesh_mech_FEM.f90 +++ b/src/mesh/mesh_mech_FEM.f90 @@ -26,7 +26,11 @@ module mesh_mechanical_FEM use homogenization use math +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private !-------------------------------------------------------------------------------------------------- diff --git a/src/parallelization.f90 b/src/parallelization.f90 index d2c982d1d..5c7e9bff3 100644 --- a/src/parallelization.f90 +++ b/src/parallelization.f90 @@ -18,7 +18,11 @@ module parallelization use prec +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private #ifndef PETSC diff --git a/src/quit.f90 b/src/quit.f90 index 3a46658e2..4fc6bf11b 100644 --- a/src/quit.f90 +++ b/src/quit.f90 @@ -12,8 +12,14 @@ subroutine quit(stop_id) #endif use HDF5 +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif + integer, intent(in) :: stop_id + integer, dimension(8) :: dateAndTime integer :: err_HDF5 integer(MPI_INTEGER_KIND) :: err_MPI diff --git a/src/results.f90 b/src/results.f90 index 6849d7577..17efc87e3 100644 --- a/src/results.f90 +++ b/src/results.f90 @@ -21,7 +21,11 @@ module results use DAMASK_interface #endif +#if (PETSC_VERSION_MAJOR==3 && PETSC_VERSION_MINOR>14) && !defined(PETSC_HAVE_MPI_F90MODULE_VISIBILITY) implicit none(type,external) +#else + implicit none +#endif private integer(HID_T) :: resultsFile