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

Method removeCenterNode

SRC/element/PFEMElement/BCell.cpp:51–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49
50
51void BCell::removeCenterNode() {
52 auto* domain = OPS_GetDomain();
53 if (center_node != 0) {
54 if (domain != 0) {
55 Node* nd = domain->removeNode(center_node->getTag());
56 if (nd != 0) {
57 delete nd;
58 }
59 }
60 center_node = 0;
61 }
62 if (center_pc != 0) {
63 if (domain != 0) {
64 auto* pc = domain->removePressure_Constraint(
65 center_pc->getTag());
66 if (pc != 0) {
67 delete pc;
68 }
69 }
70 center_pc = 0;
71 }
72}
73
74void BCell::add(Particle* pt) { pts.push_back(pt); }
75

Callers 1

clearGridMethod · 0.80

Calls 4

OPS_GetDomainFunction · 0.50
removeNodeMethod · 0.45
getTagMethod · 0.45

Tested by

no test coverage detected