| 142 | |
| 143 | |
| 144 | void |
| 145 | BasicAnalysisBuilder::setLinks(CurrentAnalysis flag) |
| 146 | { |
| 147 | // if (theSOE && theAnalysisModel) |
| 148 | // theSOE->setLinks(*theAnalysisModel); |
| 149 | |
| 150 | if (theDomain && theHandler && theAnalysisModel) |
| 151 | theAnalysisModel->setLinks(*theDomain, *theHandler); |
| 152 | |
| 153 | if (theAnalysisModel && theNumberer) |
| 154 | theNumberer->setLinks(*theAnalysisModel); |
| 155 | |
| 156 | if (theTest && theAlgorithm) |
| 157 | theAlgorithm->setConvergenceTest(theTest); |
| 158 | |
| 159 | |
| 160 | switch (flag) { |
| 161 | case EMPTY_ANALYSIS: |
| 162 | break; |
| 163 | |
| 164 | case TRANSIENT_ANALYSIS: |
| 165 | if (theDomain && theAnalysisModel && theTransientIntegrator && theHandler) |
| 166 | theHandler->setLinks(*theDomain, *theAnalysisModel); |
| 167 | |
| 168 | if (theTransientIntegrator && theSOE && theTest && theAlgorithm) |
| 169 | theAlgorithm->setLinks(*theTransientIntegrator, *theSOE, theTest); |
| 170 | |
| 171 | if (theAnalysisModel && theSOE && theTest && theTransientIntegrator) { |
| 172 | theTransientIntegrator->setLinks(*theAnalysisModel, *theSOE, theTest); |
| 173 | } |
| 174 | // if (theTransientIntegrator && domainStamp != 0) |
| 175 | // theTransientIntegrator->domainChanged(); |
| 176 | // this->domainChanged(); |
| 177 | |
| 178 | // domainStamp = 0; |
| 179 | break; |
| 180 | |
| 181 | case STATIC_ANALYSIS: |
| 182 | if (theDomain && theAnalysisModel && theStaticIntegrator && theHandler) |
| 183 | theHandler->setLinks(*theDomain, *theAnalysisModel); |
| 184 | |
| 185 | if (theAnalysisModel && theSOE && theTest && theStaticIntegrator) |
| 186 | theStaticIntegrator->setLinks(*theAnalysisModel, *theSOE, theTest); |
| 187 | |
| 188 | if (theStaticIntegrator && theSOE && theTest && theAlgorithm) |
| 189 | theAlgorithm->setLinks(*theStaticIntegrator, *theSOE, theTest); |
| 190 | |
| 191 | // domainStamp = 0; |
| 192 | break; |
| 193 | } |
| 194 | } |
| 195 | |
| 196 | int |
| 197 | BasicAnalysisBuilder::initialize() |
no test coverage detected