//! @brief Returns the stress resultant. const XC::Vector &XC::SectionAggregator::getStressResultant(void) const { int theSectionOrder= 0; if(theSection) { const Vector &sSec= theSection->getStressResultant(); theSectionOrder= theSection->getOrder(); for(register int i= 0; i < theSectionOrder; i++) (*s)(i)= sSec(i); } theAdditions.getStress(*s,theSectionOrder); return *s; }
const Vector & SectionAggregator::getStressResultant(void) { int i = 0; int theSectionOrder = 0; if (theSection) { const Vector &sSec = theSection->getStressResultant(); theSectionOrder = theSection->getOrder(); for (i = 0; i < theSectionOrder; i++) (*s)(i) = sSec(i); } int order = theSectionOrder + numMats; for ( ; i < order; i++) (*s)(i) = theAdditions[i-theSectionOrder]->getStress(); return *s; }