MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / incrNodeDisp

Method incrNodeDisp

DEVELOPER/core/DOF_Group.cpp:649–674  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

647// values in u, components identified by myID;
648
649void
650DOF_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);

Callers 1

incrDispMethod · 0.45

Calls 3

exitFunction · 0.85
SizeMethod · 0.45
incrTrialDispMethod · 0.45

Tested by

no test coverage detected