| 317 | } |
| 318 | |
| 319 | int |
| 320 | BasicAnalysisBuilder::analyze(int num_steps, double size_steps, int flag) |
| 321 | { |
| 322 | int status = -1; |
| 323 | switch (this->CurrentAnalysisFlag) { |
| 324 | |
| 325 | case STATIC_ANALYSIS: |
| 326 | status = this->analyzeStatic(num_steps, flag); |
| 327 | break; |
| 328 | |
| 329 | case TRANSIENT_ANALYSIS: { |
| 330 | // TODO: Need to remove global timestep variable; |
| 331 | ops_Dt = size_steps; |
| 332 | status = this->analyzeTransient(num_steps, size_steps); |
| 333 | break; |
| 334 | } |
| 335 | |
| 336 | default: |
| 337 | opserr << OpenSees::PromptValueError << "No Analysis type has been specified \n"; |
| 338 | return -1; |
| 339 | } |
| 340 | |
| 341 | // TODO: This should be done when exact compatibility with upstream is needed; |
| 342 | // add an environment variable or flag to control it. |
| 343 | // theDomain->flushRecorders(); |
| 344 | return status; |
| 345 | } |
| 346 | |
| 347 | int |
| 348 | BasicAnalysisBuilder::analyzeStatic(int numSteps, int flag) |
nothing calls this directly
no test coverage detected