diff --git a/cmake/Compiler-GNU.cmake b/cmake/Compiler-GNU.cmake index 858e91134..ebba8c0bf 100644 --- a/cmake/Compiler-GNU.cmake +++ b/cmake/Compiler-GNU.cmake @@ -1,6 +1,9 @@ ################################################################################################### # GNU Compiler ################################################################################################### +if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 8.0) + message (FATAL_ERROR "GCC Compiler version: ${CMAKE_Fortran_COMPILER_VERSION} not supported") +endif () if (OPENMP) set (OPENMP_FLAGS "-fopenmp") diff --git a/cmake/Compiler-Intel.cmake b/cmake/Compiler-Intel.cmake index 1a2c2c455..6d96ff42d 100644 --- a/cmake/Compiler-Intel.cmake +++ b/cmake/Compiler-Intel.cmake @@ -1,6 +1,10 @@ ################################################################################################### # Intel Compiler ################################################################################################### +if (CMAKE_Fortran_COMPILER_VERSION VERSION_LESS 18.0) + message (FATAL_ERROR "Intel Compiler version: ${CMAKE_Fortran_COMPILER_VERSION} not supported") +endif () + if (OPENMP) set (OPENMP_FLAGS "-qopenmp -parallel") endif () diff --git a/src/DAMASK_interface.f90 b/src/DAMASK_interface.f90 index 8e4369840..67c7d99da 100644 --- a/src/DAMASK_interface.f90 +++ b/src/DAMASK_interface.f90 @@ -9,8 +9,6 @@ !> by DAMASK. Interpretating the command line arguments to get load case, geometry file, !> and working directory. !-------------------------------------------------------------------------------------------------- -#define GCC_MIN 6 -#define INTEL_MIN 1700 #define PETSC_MAJOR 3 #define PETSC_MINOR_MIN 10 #define PETSC_MINOR_MAX 13 @@ -50,29 +48,6 @@ contains !-------------------------------------------------------------------------------------------------- subroutine DAMASK_interface_init #include -#if defined(__GFORTRAN__) && __GNUC__PETSC_MINOR_MAX ===================================================================================================