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

Method analyze

SRC/runtime/runtime/BasicAnalysisBuilder.cpp:319–345  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

317}
318
319int
320BasicAnalysisBuilder::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
347int
348BasicAnalysisBuilder::analyzeStatic(int numSteps, int flag)

Callers

nothing calls this directly

Calls 2

analyzeStaticMethod · 0.95
analyzeTransientMethod · 0.95

Tested by

no test coverage detected