| 805 | |
| 806 | |
| 807 | int |
| 808 | Node::setTrialAccel(const Vector &newTrialAccel) |
| 809 | { |
| 810 | // check vector arg is of correct size |
| 811 | if (newTrialAccel.Size() != numberDOF) { |
| 812 | opserr << "WARNING Node::setTrialAccel() - incompatible sizes\n"; |
| 813 | return -2; |
| 814 | } |
| 815 | |
| 816 | // create a copy if no trial exists |
| 817 | if (trialAccel == 0) { |
| 818 | if (this->createAccel() < 0) { |
| 819 | opserr << "FATAL Node::setTrialAccel() - ran out of memory\n"; |
| 820 | exit(-1); |
| 821 | } |
| 822 | } |
| 823 | |
| 824 | // use vector assignment otherwise |
| 825 | for (int i=0; i<numberDOF; i++) |
| 826 | accel[i] = newTrialAccel(i); |
| 827 | |
| 828 | return 0; |
| 829 | } |
| 830 | |
| 831 | int |
| 832 | Node::incrTrialDisp(const Vector &incrDispl) |
no test coverage detected