| 2331 | |
| 2332 | |
| 2333 | int |
| 2334 | Domain::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 | |
| 2358 | const Vector & |
no test coverage detected