| 194 | } |
| 195 | |
| 196 | int |
| 197 | BasicAnalysisBuilder::initialize() |
| 198 | { |
| 199 | // check if domain has undergone change |
| 200 | int stamp = theDomain->hasDomainChanged(); |
| 201 | if (stamp != domainStamp) { |
| 202 | domainStamp = stamp; |
| 203 | if (this->domainChanged() < 0) { |
| 204 | opserr << OpenSees::PromptValueError |
| 205 | << "initialize - domainChanged() failed\n"; |
| 206 | return -1; |
| 207 | } |
| 208 | } |
| 209 | |
| 210 | switch (this->CurrentAnalysisFlag) { |
| 211 | case EMPTY_ANALYSIS: |
| 212 | break; |
| 213 | |
| 214 | case STATIC_ANALYSIS: |
| 215 | if (theStaticIntegrator->initialize() < 0) { |
| 216 | return -2; |
| 217 | } |
| 218 | else |
| 219 | theStaticIntegrator->commit(); |
| 220 | break; |
| 221 | |
| 222 | case TRANSIENT_ANALYSIS: |
| 223 | if (theTransientIntegrator->initialize() < 0) { |
| 224 | return -2; |
| 225 | } |
| 226 | else |
| 227 | theTransientIntegrator->commit(); |
| 228 | break; |
| 229 | } |
| 230 | theDomain->initialize(); |
| 231 | |
| 232 | return 0; |
| 233 | } |
| 234 | |
| 235 | int |
| 236 | BasicAnalysisBuilder::domainChanged() |
no test coverage detected