Dear FMK,
There are some iter class in OpenSees . For example, the FE_EleIter is an iter for returning the FE_Elements of an object of class AnalysisModel.
FE_Element *elePtr;
FE_EleIter &theEles2 = theAnalysisModel->getFEs();
while((elePtr = theEles2()) != 0) {
if (theSOE->addB(elePtr->getResidual(this),elePtr->getID()) <0) {
opserr << "WARNING IncrementalIntegrator::formElementResidual -";
opserr << " failed in addB for ID " << elePtr->getID();
res = -2;
}
}
I need to check how many FE_Element in the AnalysisModel totally, is there a way to print theFE_EleIter list? It is an abstract object , and it doesn’t have the Print() function. So would you please teach me, except to use the “while…”, how to get the list of this FE_EleIter in the Analysis? Thank you very much!
About the Iter class
Moderators: silvia, selimgunay, Moderators