From 43ead134d2da89b127b727f9052fa8d0815c5309 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 3 Apr 2019 14:49:16 +0200 Subject: [PATCH] using correct comparison -MIN is the minimum version that works -MAX is the maximum version that works --- src/DAMASK_interface.f90 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/DAMASK_interface.f90 b/src/DAMASK_interface.f90 index e3bc9d1fd..87a73af37 100644 --- a/src/DAMASK_interface.f90 +++ b/src/DAMASK_interface.f90 @@ -60,7 +60,7 @@ subroutine DAMASK_interface_init() getCWD #include -#if defined(__GFORTRAN__) && __GNUC__<=GCC_MIN +#if defined(__GFORTRAN__) && __GNUC__PETSC_MINOR_MAX +#if PETSC_VERSION_MAJOR!=3 || PETSC_VERSION_MINORPETSC_MINOR_MAX =================================================================================================== -- WRONG PETSc VERSION --- WRONG PETSc VERSION --- WRONG PETSc VERSION --- WRONG PETSc VERSION -- ===================================================================================================