| 876 | |
| 877 | |
| 878 | int |
| 879 | Node::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 | |
| 902 | int |
| 903 | Node::incrTrialDisp(const Vector &incrDispl) |
no test coverage detected