| 1007 | } |
| 1008 | |
| 1009 | int |
| 1010 | AC3D8HexWithSensitivity::computeHH(void) |
| 1011 | { |
| 1012 | if (HH == 0) { |
| 1013 | HH = new Matrix*[numGP]; |
| 1014 | if (HH == 0) { |
| 1015 | opserr << "AC3D8HexWithSensitivity::computeHH - out of memory!\n"; |
| 1016 | return -3; |
| 1017 | } |
| 1018 | |
| 1019 | // compute H first |
| 1020 | this->computeH(); |
| 1021 | |
| 1022 | for(int i = 0; i < numGP; i++) { |
| 1023 | HH[i] = new Matrix(nodes_in_elem, nodes_in_elem); |
| 1024 | if (HH[i] == 0) { |
| 1025 | opserr << "AC3D8HexWithSensitivity::computeHH - out of memory!\n"; |
| 1026 | return -3; |
| 1027 | } |
| 1028 | |
| 1029 | HH[i]->addMatrixTransposeProduct(0.0, *H[i], *H[i], 1.0); |
| 1030 | } |
| 1031 | } |
| 1032 | |
| 1033 | |
| 1034 | return 0; |
| 1035 | } |
| 1036 | |
| 1037 | int |
| 1038 | AC3D8HexWithSensitivity::computeDiff(void) |
no test coverage detected