using correct comparison

-MIN is the minimum version that works
-MAX is the maximum version that works
This commit is contained in:
Martin Diehl 2019-04-03 14:49:16 +02:00
parent 9759d3d041
commit 43ead134d2
1 changed files with 3 additions and 3 deletions

View File

@ -60,7 +60,7 @@ subroutine DAMASK_interface_init()
getCWD getCWD
#include <petsc/finclude/petscsys.h> #include <petsc/finclude/petscsys.h>
#if defined(__GFORTRAN__) && __GNUC__<=GCC_MIN #if defined(__GFORTRAN__) && __GNUC__<GCC_MIN
=================================================================================================== ===================================================================================================
----- WRONG COMPILER VERSION ----- WRONG COMPILER VERSION ----- WRONG COMPILER VERSION ----- ----- WRONG COMPILER VERSION ----- WRONG COMPILER VERSION ----- WRONG COMPILER VERSION -----
=================================================================================================== ===================================================================================================
@ -72,7 +72,7 @@ subroutine DAMASK_interface_init()
=================================================================================================== ===================================================================================================
#endif #endif
#if defined(__INTEL_COMPILER) && __INTEL_COMPILER<=INTEL_MIN #if defined(__INTEL_COMPILER) && __INTEL_COMPILER<INTEL_MIN
=================================================================================================== ===================================================================================================
----- WRONG COMPILER VERSION ----- WRONG COMPILER VERSION ----- WRONG COMPILER VERSION ----- ----- WRONG COMPILER VERSION ----- WRONG COMPILER VERSION ----- WRONG COMPILER VERSION -----
=================================================================================================== ===================================================================================================
@ -84,7 +84,7 @@ subroutine DAMASK_interface_init()
=================================================================================================== ===================================================================================================
#endif #endif
#if PETSC_VERSION_MAJOR!=3 || PETSC_VERSION_MINOR<=PETSC_MINOR_MIN || PETSC_VERSION_MINOR>PETSC_MINOR_MAX #if PETSC_VERSION_MAJOR!=3 || PETSC_VERSION_MINOR<PETSC_MINOR_MIN || PETSC_VERSION_MINOR>PETSC_MINOR_MAX
=================================================================================================== ===================================================================================================
-- WRONG PETSc VERSION --- WRONG PETSc VERSION --- WRONG PETSc VERSION --- WRONG PETSc VERSION -- -- WRONG PETSc VERSION --- WRONG PETSc VERSION --- WRONG PETSc VERSION --- WRONG PETSc VERSION --
=================================================================================================== ===================================================================================================