From 376e45d7bfe7f505a02e90dc80c80ee8fa00f53a Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Sat, 23 May 2020 13:55:00 +0200 Subject: [PATCH] don't even start to compile --- cmake/Compiler-GNU.cmake | 3 +++ cmake/Compiler-Intel.cmake | 4 ++++ src/DAMASK_interface.f90 | 25 ------------------------- 3 files changed, 7 insertions(+), 25 deletions(-) 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 ===================================================================================================