Warning for unused primitives
parent
99e987b240
commit
27bf0aac7d
|
@ -956,6 +956,8 @@ bool Operator::CalcFieldExcitation()
|
|||
curv->GetPoint(i-1,p1);
|
||||
curv->GetPoint(i,p2);
|
||||
path = FindPath(p1,p2);
|
||||
if (path.dir.size()>0)
|
||||
prim->SetPrimitiveUsed(true);
|
||||
for (size_t t=0;t<path.dir.size();++t)
|
||||
{
|
||||
n = path.dir.at(t);
|
||||
|
@ -1064,13 +1066,15 @@ bool Operator::CalcPEC()
|
|||
curv->GetPoint(i-1,p1);
|
||||
curv->GetPoint(i,p2);
|
||||
path = FindPath(p1,p2);
|
||||
if (path.dir.size()>0)
|
||||
prim->SetPrimitiveUsed(true);
|
||||
for (size_t t=0;t<path.dir.size();++t)
|
||||
{
|
||||
// cerr << path.dir.at(t) << " " << path.posPath[0].at(t) << " " << path.posPath[1].at(t) << " " << path.posPath[2].at(t) << endl;
|
||||
GetVV(path.dir.at(t),path.posPath[0].at(t),path.posPath[1].at(t),path.posPath[2].at(t)) = 0;
|
||||
GetVI(path.dir.at(t),path.posPath[0].at(t),path.posPath[1].at(t),path.posPath[2].at(t)) = 0;
|
||||
++m_Nr_PEC[path.dir.at(t)];
|
||||
}
|
||||
}
|
||||
// cerr << "found path size: " << path.dir.size() << endl;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -315,6 +315,7 @@ int openEMS::SetupFDTD(const char* file)
|
|||
proc->SetProcessInterval(Nyquist/m_OverSampling);
|
||||
proc->DefineStartStopCoord(start,stop);
|
||||
PA->AddProcessing(proc);
|
||||
prim->SetPrimitiveUsed(true);
|
||||
}
|
||||
else
|
||||
delete proc;
|
||||
|
@ -351,12 +352,15 @@ int openEMS::SetupFDTD(const char* file)
|
|||
ProcTD->DefineStartStopCoord(start,stop);
|
||||
ProcTD->InitProcess();
|
||||
PA->AddProcessing(ProcTD);
|
||||
prim->SetPrimitiveUsed(true);
|
||||
}
|
||||
else
|
||||
delete ProcTD;
|
||||
}
|
||||
}
|
||||
|
||||
CSX.WarnUnusedPrimitves(cerr);
|
||||
|
||||
// dump all boxes (voltage, current, fields, ...)
|
||||
if (m_debugBox)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue