From 8aec6c9f6f4246cbf830411625ca2062017f5521 Mon Sep 17 00:00:00 2001 From: Sterling Harper Date: Tue, 2 Sep 2014 15:42:53 -0400 Subject: [PATCH] Fixed nested hex_lattice error --- src/geometry.F90 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geometry.F90 b/src/geometry.F90 index ee4f9af2ad..0d03601a0d 100644 --- a/src/geometry.F90 +++ b/src/geometry.F90 @@ -1603,14 +1603,14 @@ contains ! is selected. This logic must include consideration of floating point ! precision. if (d_surf < d_lat) then - if (abs(dist - d_surf)/dist >= FP_REL_PRECISION) then + if ((dist - d_surf)/dist >= FP_REL_PRECISION) then dist = d_surf surface_crossed = level_surf_cross lattice_translation = (/0, 0, 0/) final_coord => coord end if else - if (abs(dist - d_lat)/dist >= FP_REL_PRECISION) then + if ((dist - d_lat)/dist >= FP_REL_PRECISION) then dist = d_lat surface_crossed = None lattice_translation = level_lat_trans