| 147 | } |
| 148 | |
| 149 | int |
| 150 | WrapperElement::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 | |
| 169 | int |
| 170 | WrapperElement::revertToLastCommit() |
nothing calls this directly
no test coverage detected