You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -149,23 +147,25 @@ Result<> ComputeFeaturePhasesFilter::executeImpl(DataStructure& dataStructure, c
149
147
int32 curPhaseVal = featureMap[gnum];
150
148
if(curPhaseVal != cellPhases[i])
151
149
{
152
-
auto [iter, insertSuccess] = warningMap.insert({gnum, 1});
153
-
if(!insertSuccess)
154
-
{
155
-
iter->second += 1;
156
-
}
150
+
warnFeatures.insert(gnum);
157
151
}
158
152
featurePhases[gnum] = cellPhases[i];
159
153
}
160
154
161
155
Result<> result;
162
-
if(!warningMap.empty())
156
+
if(!warnFeatures.empty())
163
157
{
164
-
result.warnings().push_back(Warning{-500, "Elements from some features did not all have the same phase ID. The last phase ID copied into each feature will be used."});
165
-
for(auto&& [key, value] : warningMap)
158
+
std::string warnStr = "Elements from some features did not all have the same phase ID. The last phase ID copied into each feature will be used. Effected Phase Features: ";
159
+
usize position = 0;
160
+
for(auto value : warnFeatures)
166
161
{
167
-
result.warnings().push_back(Warning{-500, fmt::format("Phase Feature {} created {} warnings.", key, value)});
0 commit comments