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

Method initialize

SRC/analysis/analysis/DirectIntegrationAnalysis.cpp:143–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

141#include <Node.h>
142
143int
144DirectIntegrationAnalysis::initialize(void)
145{
146 Domain *the_Domain = this->getDomainPtr();
147
148 // check if domain has undergone change
149 int stamp = the_Domain->hasDomainChanged();
150 if (stamp != domainStamp) {
151 domainStamp = stamp;
152 if (this->domainChanged() < 0) {
153 opserr << "DirectIntegrationAnalysis::initialize() - domainChanged() failed\n";
154 return -1;
155 }
156 }
157 if (theIntegrator->initialize() < 0) {
158 opserr << "DirectIntegrationAnalysis::initialize() - integrator initialize() failed\n";
159 return -2;
160 } else
161 theIntegrator->commit();
162
163 return 0;
164}
165
166
167int

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