From f69abbf669ef72d2627c40f9f2bfad5eaf86403c Mon Sep 17 00:00:00 2001 From: James E McClure Date: Thu, 12 Nov 2015 15:01:35 -0500 Subject: [PATCH] Adding error check to TestSegDist --- tests/TestSegDist.cpp | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/tests/TestSegDist.cpp b/tests/TestSegDist.cpp index 00305c50..4dde2e01 100644 --- a/tests/TestSegDist.cpp +++ b/tests/TestSegDist.cpp @@ -62,17 +62,23 @@ int main(int argc, char **argv) id = new char [N]; double BubbleRadius = 25; // Initialize the bubble - int x,y,z; + double x,y,z , Cx,Cy,Cz; + + Cx = 1.0*nx; + Cy = 1.0*ny; + Cz = 1.0*nz; + for (k=1;k