From 7bbb6883a11d9f56dc3907f5e4f6d97f55d3e149 Mon Sep 17 00:00:00 2001 From: James E McClure Date: Fri, 9 Feb 2018 16:03:36 -0500 Subject: [PATCH] Fixed componentLable.csv --- common/Domain.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/common/Domain.cpp b/common/Domain.cpp index 56ff410c..4c59e2fa 100644 --- a/common/Domain.cpp +++ b/common/Domain.cpp @@ -546,10 +546,12 @@ void Domain::AssignComponentLabels(double *phase) printf("Component labels:\n"); ifstream iFILE("ComponentLabels.csv"); if (iFILE.good()){ + int value; while (!iFILE.eof()){ - iFILE>>VALUE; + iFILE>>value; iFILE>>AFFINITY; - Label.push_back(VALUE); + VALUE=char(value); + Label.push_back(value); Affinity.push_back(AFFINITY); NLABELS++; printf("%i %f\n",VALUE,AFFINITY);