MCPcopy Create free account
hub / github.com/OpenSees/OpenSees / setAlgorithm

Method setAlgorithm

SRC/interpreter/OpenSeesCommands.cpp:551–579  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

549}
550
551void
552OpenSeesCommands::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
581void
582OpenSeesCommands::setStaticAnalysis(bool suppress)

Callers 5

setAnalysisAlgorithmMethod · 0.45
OPS_AlgorithmFunction · 0.45
setMethod · 0.45
setAnalysisAlgorithmMethod · 0.45
specifyAlgorithmFunction · 0.45

Calls 1

setConvergenceTestMethod · 0.45

Tested by

no test coverage detected