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

Method removePressure_Constraint

DEVELOPER/core/Domain.cpp:1129–1149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1127}
1128
1129Pressure_Constraint *
1130Domain::removePressure_Constraint(int tag)
1131{
1132 // remove the object from the container
1133 TaggedObject *mc = thePCs->removeComponent(tag);
1134
1135 // if not there return 0
1136 if (mc == 0)
1137 return 0;
1138
1139 // mark the domain as having changed
1140 this->domainChange();
1141
1142 // perform a downward cast, set the objects domain pointer to 0
1143 // and return the result of the cast
1144 Pressure_Constraint *result = (Pressure_Constraint *)mc;
1145 // result->setDomain(0);
1146
1147 // should check that theLoad and result are the same
1148 return result;
1149}
1150
1151MP_Constraint *
1152Domain::removeMP_Constraint(int tag)

Callers

nothing calls this directly

Calls 2

domainChangeMethod · 0.95
removeComponentMethod · 0.45

Tested by

no test coverage detected