| 1812 | // values and the Vector objects for the committed and trial quantities. |
| 1813 | |
| 1814 | int |
| 1815 | Node::createDisp(void) |
| 1816 | { |
| 1817 | // trial , committed, incr = (committed-trial) |
| 1818 | disp = new double[4*numberDOF]; |
| 1819 | |
| 1820 | if (disp == 0) { |
| 1821 | opserr << "WARNING - Node::createDisp() ran out of memory for array of size " << 2*numberDOF << endln; |
| 1822 | |
| 1823 | return -1; |
| 1824 | } |
| 1825 | for (int i=0; i<4*numberDOF; i++) |
| 1826 | disp[i] = 0.0; |
| 1827 | |
| 1828 | commitDisp = new Vector(&disp[numberDOF], numberDOF); |
| 1829 | trialDisp = new Vector(disp, numberDOF); |
| 1830 | incrDisp = new Vector(&disp[2*numberDOF], numberDOF); |
| 1831 | incrDeltaDisp = new Vector(&disp[3*numberDOF], numberDOF); |
| 1832 | |
| 1833 | if (commitDisp == 0 || trialDisp == 0 || incrDisp == 0 || incrDeltaDisp == 0) { |
| 1834 | opserr << "WARNING - Node::createDisp() " << |
| 1835 | "ran out of memory creating Vectors(double *,int)"; |
| 1836 | return -2; |
| 1837 | } |
| 1838 | |
| 1839 | return 0; |
| 1840 | } |
| 1841 | |
| 1842 | |
| 1843 | int |
no outgoing calls
no test coverage detected