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

Function OPS_getPatterns

SRC/interpreter/OpenSeesOutputCommands.cpp:1653–1674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1651}
1652
1653int OPS_getPatterns()
1654{
1655 Domain* theDomain = OPS_GetDomain();
1656 if (theDomain == 0) return -1;
1657
1658 LoadPattern *thePattern;
1659 LoadPatternIter &thePatterns = theDomain->getLoadPatterns();
1660
1661 std::vector <int> data;
1662
1663 while ((thePattern = thePatterns()) != 0)
1664 data.push_back(thePattern->getTag());
1665
1666 int size = data.size();
1667
1668 if (OPS_SetIntOutput(&size, data.data(), false) < 0) {
1669 opserr << "WARNING getPatterns - failed to set output\n";
1670 return -1;
1671 }
1672
1673 return 0;
1674}
1675
1676int OPS_getFixedNodes()
1677{

Callers 1

Py_ops_getPatternsFunction · 0.85

Calls 6

push_backMethod · 0.80
OPS_GetDomainFunction · 0.70
OPS_SetIntOutputFunction · 0.70
getTagMethod · 0.45
sizeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected