| 562 | // values in u, components identified by myID; |
| 563 | |
| 564 | void |
| 565 | DOF_Group::setNodeDisp(const Vector &u) |
| 566 | { |
| 567 | if (myNode == 0) { |
| 568 | opserr << "DOF_Group::setNodeDisp: no associated Node\n"; |
| 569 | return; |
| 570 | } |
| 571 | |
| 572 | Vector &disp = *unbalance; |
| 573 | disp = myNode->getTrialDisp(); |
| 574 | int i; |
| 575 | |
| 576 | // get disp for my dof out of vector u |
| 577 | for (i=0; i<numDOF; i++) { |
| 578 | int loc = myID(i); |
| 579 | if (loc >= 0) |
| 580 | disp(i) = u(loc); |
| 581 | } |
| 582 | |
| 583 | myNode->setTrialDisp(disp); |
| 584 | } |
| 585 | |
| 586 | |
| 587 | // void setNodeVel(const Vector &udot); |
no test coverage detected