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

Method setEigenvalues

DEVELOPER/core/Domain.cpp:2062–2084  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2060
2061
2062int
2063Domain::setEigenvalues(const Vector &theValues)
2064{
2065 // make sure the eigen value vector is large enough
2066 if (theEigenvalues == 0 || theEigenvalues->Size() != theValues.Size()) {
2067
2068 // if not zero delete the old and create a new one
2069 if (theEigenvalues != 0)
2070 delete theEigenvalues;
2071
2072 // create the new vector
2073 theEigenvalues = new Vector(theValues);
2074 } else
2075
2076 // otherwise just a straight assignment
2077 *theEigenvalues = theValues;
2078
2079
2080 // now set the time at which eigen values were determined to be current domain time
2081 theEigenvalueSetTime = this->getCurrentTime();
2082
2083 return 0;
2084}
2085
2086
2087const Vector &

Callers

nothing calls this directly

Calls 2

getCurrentTimeMethod · 0.95
SizeMethod · 0.45

Tested by

no test coverage detected