From 0a5dc6d50371a32e7a4d3190bd52aaa6266a3c45 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Wed, 12 Jun 2019 19:59:17 +0200 Subject: [PATCH] HDF5 is not always available --- src/HDF5_utilities.f90 | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/HDF5_utilities.f90 b/src/HDF5_utilities.f90 index 51d0fbdc6..06de28d90 100644 --- a/src/HDF5_utilities.f90 +++ b/src/HDF5_utilities.f90 @@ -5,14 +5,17 @@ !> @author Martin Diehl, Max-Planck-Institut für Eisenforschung GmbH !-------------------------------------------------------------------------------------------------- module HDF5_utilities +#if defined(PETSc) || defined(DAMASK_HDF5) + use HDF5 +#endif +#ifdef PETSc + use PETSC +#endif + use prec use IO use rotations use numerics - use HDF5 -#ifdef PETSc - use PETSC -#endif implicit none public