From 69d3348a93d3dc3d6dba76a12ce15b5309bb3c3c Mon Sep 17 00:00:00 2001 From: Grzegorz Kowal Date: Thu, 29 May 2014 13:12:17 -0300 Subject: [PATCH] COORDINATES: Do not read zmin/zmax if not 3D. Signed-off-by: Grzegorz Kowal --- src/coordinates.F90 | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/coordinates.F90 b/src/coordinates.F90 index 670f9f1..e12ebdb 100644 --- a/src/coordinates.F90 +++ b/src/coordinates.F90 @@ -234,8 +234,10 @@ module coordinates call get_parameter_real ("xmax" , xmax ) call get_parameter_real ("ymin" , ymin ) call get_parameter_real ("ymax" , ymax ) +#if NDIMS == 3 call get_parameter_real ("zmin" , zmin ) call get_parameter_real ("zmax" , zmax ) +#endif /* NDIMS == 3 */ ! allocate space for coordinate variables !