| 357 | } |
| 358 | |
| 359 | int |
| 360 | StaticAnalysis::domainChanged(void) |
| 361 | { |
| 362 | int result = 0; |
| 363 | |
| 364 | Domain *the_Domain = this->getDomainPtr(); |
| 365 | int stamp = the_Domain->hasDomainChanged(); |
| 366 | domainStamp = stamp; |
| 367 | |
| 368 | // Timer theTimer; theTimer.start(); |
| 369 | // opserr << "StaticAnalysis::domainChanged(void)\n"; |
| 370 | |
| 371 | theAnalysisModel->clearAll(); |
| 372 | theConstraintHandler->clearAll(); |
| 373 | |
| 374 | // theTimer.pause(); |
| 375 | // cout << "StaticAnalysis::clearAll() " << theTimer.getReal(); |
| 376 | // cout << theTimer.getCPU() << endln; |
| 377 | // theTimer.start(); |
| 378 | |
| 379 | // now we invoke handle() on the constraint handler which |
| 380 | // causes the creation of FE_Element and DOF_Group objects |
| 381 | // and their addition to the AnalysisModel. |
| 382 | |
| 383 | result = theConstraintHandler->handle(); |
| 384 | if (result < 0) { |
| 385 | opserr << "StaticAnalysis::handle() - "; |
| 386 | opserr << "ConstraintHandler::handle() failed"; |
| 387 | return -1; |
| 388 | } |
| 389 | |
| 390 | // we now invoke number() on the numberer which causes |
| 391 | // equation numbers to be assigned to all the DOFs in the |
| 392 | // AnalysisModel. |
| 393 | |
| 394 | result = theDOF_Numberer->numberDOF(); |
| 395 | if (result < 0) { |
| 396 | opserr << "StaticAnalysis::handle() - "; |
| 397 | opserr << "DOF_Numberer::numberDOF() failed"; |
| 398 | return -2; |
| 399 | } |
| 400 | |
| 401 | result = theConstraintHandler->doneNumberingDOF(); |
| 402 | if (result < 0) { |
| 403 | opserr << "StaticAnalysis::handle() - "; |
| 404 | opserr << "ConstraintHandler::doneNumberingDOF() failed"; |
| 405 | return -2; |
| 406 | } |
| 407 | |
| 408 | // we invoke setSize() on the LinearSOE which |
| 409 | // causes that object to determine its size |
| 410 | |
| 411 | Graph &theGraph = theAnalysisModel->getDOFGraph(); |
| 412 | |
| 413 | result = theSOE->setSize(theGraph); |
| 414 | if (result < 0) { |
| 415 | opserr << "StaticAnalysis::handle() - "; |
| 416 | opserr << "LinearSOE::setSize() failed"; |
no test coverage detected