MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / getResponse

Method getResponse

SRC/material/section/MembranePlateFiberSection.cpp:721–742  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

719
720
721int
722MembranePlateFiberSection::getResponse(int responseID, Information &sectInfo)
723{
724 if (responseID == 777) {
725 int count = 0;
726 for (int j = 0; j < numFibers; j++) {
727 if (theFibers[j]->hasFailed() == true) {
728 count += 1;
729 }
730 }
731 if (count == numFibers)
732 count = 1;
733 else
734 count = 0;
735
736 return sectInfo.setInt(count);
737 }
738
739 // Just call the base class method ... don't need to define
740 // this function, but keeping it here just for clarity
741 return SectionForceDeformation::getResponse(responseID, sectInfo);
742}
743
744int MembranePlateFiberSection::setParameter(const char** argv, int argc, Parameter& param)
745{

Callers

nothing calls this directly

Calls 2

hasFailedMethod · 0.45
setIntMethod · 0.45

Tested by

no test coverage detected