| 427 | } |
| 428 | |
| 429 | void |
| 430 | OpenSeesCommands::setHandler(ConstraintHandler* handler) |
| 431 | { |
| 432 | // if not in analysis object, delete old one and set new one |
| 433 | if (theStaticAnalysis==0 && theTransientAnalysis==0) { |
| 434 | if (theHandler != 0) { |
| 435 | delete theHandler; |
| 436 | theHandler = 0; |
| 437 | } |
| 438 | theHandler = handler; |
| 439 | return; |
| 440 | } |
| 441 | |
| 442 | // if analysis object is created, not set new one |
| 443 | if (handler != 0) { |
| 444 | opserr<<"WARNING can't set handler after analysis is created\n"; |
| 445 | delete handler; |
| 446 | } |
| 447 | |
| 448 | } |
| 449 | |
| 450 | void |
| 451 | OpenSeesCommands::setCTest(ConvergenceTest* test) |
no outgoing calls
no test coverage detected