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

Method commitState

SRC/element/WrapperElement.cpp:149–167  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

147}
148
149int
150WrapperElement::commitState()
151{
152 // get the current load factor
153 Domain *theDomain=this->getDomain();
154
155 double time = theDomain->getCurrentTime();
156 committedDt = time - committedTime;
157 committedTime = theDomain->getCurrentTime();
158
159 theModelState.time = committedTime;
160 theModelState.dt = committedDt;
161
162 // invoke the element routine
163 int isw = ISW_COMMIT;
164 int error = 0;
165 theEle->eleFunctPtr(theEle, &theModelState, K , R, &isw, &error);
166 return error;
167}
168
169int
170WrapperElement::revertToLastCommit()

Callers

nothing calls this directly

Calls 2

getDomainMethod · 0.45
getCurrentTimeMethod · 0.45

Tested by

no test coverage detected