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

Method setNumColR

DEVELOPER/core/Node.cpp:1342–1360  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1340
1341
1342int
1343Node::setNumColR(int numCol)
1344{
1345 if (R != 0) {
1346 if (R->noCols() != numCol) {
1347 delete R;
1348 R = new Matrix(numberDOF, numCol);
1349 }
1350 } else
1351 R = new Matrix(numberDOF, numCol);
1352
1353 if (R == 0 || R->noRows() != numberDOF) {
1354 opserr << "FATAL Node::setNumColR() - out of memory\n";
1355 exit(-1);
1356 }
1357
1358 R->Zero();
1359 return 0;
1360}
1361
1362int
1363Node::setR(int row, int col, double Value)

Callers

nothing calls this directly

Calls 4

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

Tested by

no test coverage detected