| 549 | } |
| 550 | |
| 551 | void |
| 552 | OpenSeesCommands::setAlgorithm(EquiSolnAlgo* algorithm) |
| 553 | { |
| 554 | // if not in analysis object, delete old one |
| 555 | if (theStaticAnalysis==0 && theTransientAnalysis==0) { |
| 556 | if (theAlgorithm != 0) { |
| 557 | delete theAlgorithm; |
| 558 | theAlgorithm = 0; |
| 559 | } |
| 560 | } |
| 561 | |
| 562 | // set new one |
| 563 | theAlgorithm = algorithm; |
| 564 | if (algorithm == 0) return; |
| 565 | |
| 566 | // set in analysis object |
| 567 | if (theStaticAnalysis != 0) { |
| 568 | theStaticAnalysis->setAlgorithm(*algorithm); |
| 569 | if (theTest != 0) { |
| 570 | algorithm->setConvergenceTest(theTest); |
| 571 | } |
| 572 | } |
| 573 | if (theTransientAnalysis != 0) { |
| 574 | theTransientAnalysis->setAlgorithm(*algorithm); |
| 575 | if (theTest != 0) { |
| 576 | algorithm->setConvergenceTest(theTest); |
| 577 | } |
| 578 | } |
| 579 | } |
| 580 | |
| 581 | void |
| 582 | OpenSeesCommands::setStaticAnalysis(bool suppress) |
no test coverage detected