瀏覽代碼

optimize GB calculate method

gsp 1 年之前
父節點
當前提交
53af01ecdd
共有 1 個文件被更改,包括 12 次插入0 次删除
  1. 12 0
      OTSCPP/OTSRptCalculate/GBCal/GBFieldData.cpp

+ 12 - 0
OTSCPP/OTSRptCalculate/GBCal/GBFieldData.cpp

@@ -289,6 +289,10 @@ namespace OTSGBCalculate
 			{
 				continue;
 			}
+			if (pParticle->GetType() == OTS_PARTICLE_TYPE::ISNOT_INCLUTION)//here we take all the particles except Invalid.
+			{
+				continue;
+			}
 			auto w = pParticle->GetDMin();
 		
 			if (w == 0 )
@@ -538,6 +542,10 @@ namespace OTSGBCalculate
 			{
 				continue;
 			}
+			if (pParticle->GetType() == OTS_PARTICLE_TYPE::ISNOT_INCLUTION)//here we take all the particles except Invalid.
+			{
+				continue;
+			}
 			//check the denominator is zero or not
 			auto w = pParticle->GetDMin();
 
@@ -712,6 +720,10 @@ namespace OTSGBCalculate
 			{
 				continue;
 			}
+			if (pParticle->GetType() == OTS_PARTICLE_TYPE::ISNOT_INCLUTION)//here we take all the particles except Invalid.
+			{
+				continue;
+			}
 			auto w = pParticle->GetDMin();
 
 			if (w == 0)