From c211117f0059edf3e21f1cbf6e336afd3bfd38c3 Mon Sep 17 00:00:00 2001
From: Pietro Incardona <incardon@mpi-cbg.de>
Date: Fri, 17 Feb 2017 15:51:05 +0100
Subject: [PATCH] Fixing test for invalid grid

---
 src/Grid/Iterators/grid_dist_id_iterators_unit_tests.hpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/Grid/Iterators/grid_dist_id_iterators_unit_tests.hpp b/src/Grid/Iterators/grid_dist_id_iterators_unit_tests.hpp
index 232207c27..0ac518ac6 100644
--- a/src/Grid/Iterators/grid_dist_id_iterators_unit_tests.hpp
+++ b/src/Grid/Iterators/grid_dist_id_iterators_unit_tests.hpp
@@ -309,6 +309,9 @@ void Test3D_decskinit(const Box<3,float> & domain, long int k)
 			sz[1] = k;
 			sz[2] = k;
 
+			if (k <= 9)
+				continue;
+
 			// factor
 			float factor = pow(create_vcluster().getProcessingUnits()/2.0f,1.0f/3.0f);
 
-- 
GitLab