| 201 | } |
| 202 | |
| 203 | bool |
| 204 | Subdomain::addExternalNode(Node *thePtr) |
| 205 | { |
| 206 | #ifdef _G3DEBUG |
| 207 | // check to see it has not alredy been added |
| 208 | |
| 209 | int nodTag = thePtr->getTag(); |
| 210 | TaggedObject *other = externalNodes->getComponentPtr(nodTag); |
| 211 | if (other != 0) |
| 212 | return false; |
| 213 | |
| 214 | other = internalNodes->getComponentPtr(nodTag); |
| 215 | if (other != 0) |
| 216 | return false; |
| 217 | |
| 218 | #endif |
| 219 | // create a dummy Node & try adding it to the external nodes |
| 220 | Node *newDummy = new Node(*thePtr, false); |
| 221 | if (newDummy == 0) |
| 222 | return false; |
| 223 | |
| 224 | bool result = externalNodes->addComponent(newDummy); |
| 225 | if (result == true) { |
| 226 | // result = realExternalNodes->addComponent(thePtr); |
| 227 | newDummy->setDomain(this); |
| 228 | this->domainChange(); |
| 229 | } |
| 230 | |
| 231 | return result; |
| 232 | } |
| 233 | |
| 234 | |
| 235 |
nothing calls this directly
no test coverage detected