| 647 | // values in u, components identified by myID; |
| 648 | |
| 649 | void |
| 650 | DOF_Group::incrNodeDisp(const Vector &u) |
| 651 | { |
| 652 | if (myNode == 0) { |
| 653 | opserr << "DOF_Group::incrNodeDisp: 0 Node Pointer\n"; |
| 654 | exit(-1); |
| 655 | } |
| 656 | |
| 657 | Vector &disp = *unbalance;; |
| 658 | |
| 659 | if (disp.Size() == 0) { |
| 660 | opserr << "DOF_Group::incrNodeDisp - out of space\n"; |
| 661 | return; |
| 662 | } |
| 663 | int i; |
| 664 | |
| 665 | // get disp for my dof out of vector u |
| 666 | for (i=0; i<numDOF; i++) { |
| 667 | int loc = myID(i); |
| 668 | if (loc >= 0) |
| 669 | disp(i) = u(loc); |
| 670 | else disp(i) = 0.0; |
| 671 | } |
| 672 | |
| 673 | myNode->incrTrialDisp(disp); |
| 674 | } |
| 675 | |
| 676 | |
| 677 | // void setNodeincrVel(const Vector &udot); |
no test coverage detected