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

Function OPS_printDamping

SRC/damping/Damping.cpp:82–100  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80}
81
82void OPS_printDamping(OPS_Stream &s, int flag)
83{
84 if (flag == OPS_PRINT_PRINTMODEL_JSON)
85 {
86 s << "\t\t\"Dampings\": [\n";
87 MapOfTaggedObjectsIter theObjects = theDampingObjects.getIter();
88 theObjects.reset();
89 TaggedObject *theObject;
90 int count = 0;
91 int numComponents = theDampingObjects.getNumComponents();
92 while ((theObject = theObjects()) != 0) {
93 Damping *theDamping = (Damping *)theObject;
94 theDamping->Print(s, flag);
95 if (count < numComponents-1) s << ",\n";
96 count++;
97 }
98 s << "\n\t\t]";
99 }
100}
101
102
103// constructor:

Callers

nothing calls this directly

Calls 4

getIterMethod · 0.45
resetMethod · 0.45
getNumComponentsMethod · 0.45
PrintMethod · 0.45

Tested by

no test coverage detected