Browse Source

check the sum of Carbon oxide and Fe, if it is greater than 60 then classify it into invalid particle.

gsp 1 year ago
parent
commit
68cdd13a01
1 changed files with 6 additions and 1 deletions
  1. 6 1
      OTSCPP/OTSClassifyEngine/InclutionEngine/OTSClassifyEng.cpp

+ 6 - 1
OTSCPP/OTSClassifyEngine/InclutionEngine/OTSClassifyEng.cpp

@@ -421,7 +421,12 @@ namespace OTSClassifyEngine
 			a_nIncId = OTS_PARTICLE_TYPE::INVALID;
 			return TRUE;
 		}
-		double sumOfCarboOxideFe = dOweight + dCarbonWeight + dFeWeight;
+		double sumOfCarboOxideFe=0;
+		if (dCarbonWeight > 0 || dFeWeight > 0)
+		{
+			 sumOfCarboOxideFe = dOweight + dCarbonWeight + dFeWeight;
+		}
+		
 		if (sumOfCarboOxideFe > 60)
 		{
 			a_nIncId = OTS_PARTICLE_TYPE::INVALID;