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

Method setEigenvalues

SRC/domain/domain/Domain.cpp:2333–2355  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2331
2332
2333int
2334Domain::setEigenvalues(const Vector &theValues)
2335{
2336 // make sure the eigen value vector is large enough
2337 if (theEigenvalues == 0 || theEigenvalues->Size() != theValues.Size()) {
2338
2339 // if not zero delete the old and create a new one
2340 if (theEigenvalues != 0)
2341 delete theEigenvalues;
2342
2343 // create the new vector
2344 theEigenvalues = new Vector(theValues);
2345 } else
2346
2347 // otherwise just a straight assignment
2348 *theEigenvalues = theValues;
2349
2350
2351 // now set the time at which eigen values were determined to be current domain time
2352 theEigenvalueSetTime = this->getCurrentTime();
2353
2354 return 0;
2355}
2356
2357
2358const Vector &

Callers 1

eigenMethod · 0.45

Calls 2

getCurrentTimeMethod · 0.95
SizeMethod · 0.45

Tested by

no test coverage detected