| 3448 | |
| 3449 | |
| 3450 | double |
| 3451 | Domain::getNodeDisp(int nodeTag, int dof, int &errorFlag) |
| 3452 | { |
| 3453 | double result = 0.0; |
| 3454 | errorFlag = 0; |
| 3455 | Node *theNode = this->getNode(nodeTag); |
| 3456 | if (theNode == 0) { |
| 3457 | errorFlag = -1; |
| 3458 | return 0.0; |
| 3459 | } |
| 3460 | const Vector &disp = theNode->getTrialDisp(); |
| 3461 | if (dof < disp.Size() && dof >= 0) { |
| 3462 | result = disp(dof); |
| 3463 | } |
| 3464 | |
| 3465 | return result; |
| 3466 | } |
| 3467 | |
| 3468 | int |
| 3469 | Domain::setMass(const Matrix &mass, int nodeTag) |