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

Function OPS_getDamageModel

SRC/damage/DamageModel.cpp:45–55  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

43}
44
45DamageModel *OPS_getDamageModel(int tag) {
46
47 TaggedObject *theResult = theDamageModelObjects.getComponentPtr(tag);
48 if (theResult == 0) {
49 opserr << "DamageModel *getDamageModel(int tag) - none found with tag: " << tag << endln;
50 return 0;
51 }
52 DamageModel *theMat = (DamageModel *)theResult;
53
54 return theMat;
55}
56
57void OPS_clearAllDamageModel(void) {
58 theDamageModelObjects.clearAll();

Callers 4

OPS_Joint2DFunction · 0.85
TclCreateRecorderFunction · 0.85

Calls 1

getComponentPtrMethod · 0.45

Tested by

no test coverage detected