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

Method initialize

SRC/runtime/runtime/BasicAnalysisBuilder.cpp:196–233  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

194}
195
196int
197BasicAnalysisBuilder::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
235int
236BasicAnalysisBuilder::domainChanged()

Callers 2

CheckTransformationFunction · 0.45
initializeAnalysisFunction · 0.45

Calls 3

domainChangedMethod · 0.95
hasDomainChangedMethod · 0.45
commitMethod · 0.45

Tested by

no test coverage detected