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

Method computeHH

SRC/element/XMUelements/AC3D8HexWithSensitivity.cpp:1009–1035  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1007}
1008
1009int
1010AC3D8HexWithSensitivity::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
1037int
1038AC3D8HexWithSensitivity::computeDiff(void)

Callers 1

Calls 2

computeHMethod · 0.95

Tested by

no test coverage detected