| 679 | // values in udot, components identified by myID; |
| 680 | |
| 681 | void |
| 682 | DOF_Group::incrNodeVel(const Vector &udot) |
| 683 | { |
| 684 | |
| 685 | if (myNode == 0) { |
| 686 | opserr << "DOF_Group::incrNodeVel: 0 Node Pointer\n"; |
| 687 | exit(-1); |
| 688 | } |
| 689 | |
| 690 | Vector &vel = *unbalance; |
| 691 | int i; |
| 692 | |
| 693 | // get vel for my dof out of vector udot |
| 694 | for (i=0; i<numDOF; i++) { |
| 695 | int loc = myID(i); |
| 696 | if (loc >= 0) |
| 697 | vel(i) = udot(loc); // -1 for dof labelled 1 through ndof |
| 698 | else vel(i) = 0.0; |
| 699 | } |
| 700 | myNode->incrTrialVel(vel); |
| 701 | } |
| 702 | |
| 703 | |
| 704 |
no test coverage detected