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

Method initialize

SRC/analysis/analysis/StaticAnalysis.cpp:336–357  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

334
335
336int
337StaticAnalysis::initialize(void)
338{
339 Domain *the_Domain = this->getDomainPtr();
340
341 // check if domain has undergone change
342 int stamp = the_Domain->hasDomainChanged();
343 if (stamp != domainStamp) {
344 domainStamp = stamp;
345 if (this->domainChanged() < 0) {
346 opserr << "DirectIntegrationAnalysis::initialize() - domainChanged() failed\n";
347 return -1;
348 }
349 }
350 if (theIntegrator->initialize() < 0) {
351 opserr << "DirectIntegrationAnalysis::initialize() - integrator initialize() failed\n";
352 return -2;
353 } else
354 theIntegrator->commit();
355
356 return 0;
357}
358
359int
360StaticAnalysis::domainChanged(void)

Callers

nothing calls this directly

Calls 4

domainChangedMethod · 0.95
getDomainPtrMethod · 0.45
hasDomainChangedMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected