| 2060 | |
| 2061 | |
| 2062 | int |
| 2063 | Domain::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 | |
| 2087 | const Vector & |
nothing calls this directly
no test coverage detected