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

Method getResponse

SRC/material/section/LayeredShellFiberSection.cpp:351–370  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

349}
350
351int
352LayeredShellFiberSection::getResponse(int responseID, Information &secInfo)
353{
354 if (responseID == 777) {
355 int count = 0;
356 for (int j = 0; j < nLayers; j++) {
357 if (theFibers[j]->hasFailed() == true) {
358 count += 1;
359 }
360 }
361 if (count == nLayers)
362 count = 1;
363 else
364 count = 0;
365
366 return secInfo.setInt(count);
367 }
368
369 return SectionForceDeformation::getResponse(responseID, secInfo);
370}
371
372int LayeredShellFiberSection::setParameter(const char** argv, int argc, Parameter& param)
373{

Callers

nothing calls this directly

Calls 2

hasFailedMethod · 0.45
setIntMethod · 0.45

Tested by

no test coverage detected