Browse Source

optimize the FeO identify logic.

gsp 3 years ago
parent
commit
9bf780d865
1 changed files with 8 additions and 4 deletions
  1. 8 4
      OTSCPP/OTSClassifyEngine/InclutionEngine/OTSClassifyEng.cpp

+ 8 - 4
OTSCPP/OTSClassifyEngine/InclutionEngine/OTSClassifyEng.cpp

@@ -223,10 +223,14 @@ namespace OTSClassifyEngine
 			double dMolarFe_O = Cal100NorValue(dOMolar + dFeMolar, a_dMolarSum + dCarbonMolar);
 			if (dMolarFe_O > FEO_MOLAR_CUTOFF)
 			{
-				// this is a FeO, not a inclusion, return FALSE
-				a_nIncId = OTS_PARTCLE_TYPE::ISNOT_INCLUTION;
-				notIncId = NOT_INCLUTION_ID::FeO;
-				return TRUE;
+				if (a_listElementChemistries.size() == 2)//there is only Fe and O
+				{
+					// this is a FeO, not a inclusion, return FALSE
+					a_nIncId = OTS_PARTCLE_TYPE::ISNOT_INCLUTION;
+					notIncId = NOT_INCLUTION_ID::FeO;
+					return TRUE;
+				}
+				
 			}
 		}