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

Method setNumColR

SRC/domain/node/Node.cpp:1295–1313  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1293
1294
1295int
1296Node::setNumColR(int numCol)
1297{
1298 if (R != 0) {
1299 if (R->noCols() != numCol) {
1300 delete R;
1301 R = new Matrix(numberDOF, numCol);
1302 }
1303 } else
1304 R = new Matrix(numberDOF, numCol);
1305
1306 if (R == 0 || R->noRows() != numberDOF) {
1307 opserr << "FATAL Node::setNumColR() - out of memory\n";
1308 exit(-1);
1309 }
1310
1311 R->Zero();
1312 return 0;
1313}
1314
1315int
1316Node::setR(int row, int col, double Value)

Callers 2

applyLoadMethod · 0.45
applyLoadSensitivityMethod · 0.45

Calls 4

exitFunction · 0.85
noColsMethod · 0.45
noRowsMethod · 0.45
ZeroMethod · 0.45

Tested by

no test coverage detected