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

Method setTrialAccel

DEVELOPER/core/Node.cpp:878–900  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

876
877
878int
879Node::setTrialAccel(const Vector &newTrialAccel)
880{
881 // check vector arg is of correct size
882 if (newTrialAccel.Size() != numberDOF) {
883 opserr << "WARNING Node::setTrialAccel() - incompatable sizes\n";
884 return -2;
885 }
886
887 // create a copy if no trial exists
888 if (trialAccel == 0) {
889 if (this->createAccel() < 0) {
890 opserr << "FATAL Node::setTrialAccel() - ran out of memory\n";
891 exit(-1);
892 }
893 }
894
895 // use vector assignment otherwise
896 for (int i=0; i<numberDOF; i++)
897 accel[i] = newTrialAccel(i);
898
899 return 0;
900}
901
902int
903Node::incrTrialDisp(const Vector &incrDispl)

Callers 2

setPdotMethod · 0.45
setNodeAccelMethod · 0.45

Calls 3

createAccelMethod · 0.95
exitFunction · 0.85
SizeMethod · 0.45

Tested by

no test coverage detected