| 167 | } |
| 168 | |
| 169 | int |
| 170 | WrapperElement::revertToLastCommit() |
| 171 | { |
| 172 | // get the current load factor |
| 173 | Domain *theDomain=this->getDomain(); |
| 174 | |
| 175 | theModelState.time = committedTime; |
| 176 | theModelState.dt = committedDt; |
| 177 | |
| 178 | // invoke the element routine |
| 179 | int isw = ISW_REVERT; |
| 180 | int error = 0; |
| 181 | theEle->eleFunctPtr(theEle, &theModelState, K , R, &isw, &error); |
| 182 | return error; |
| 183 | } |
| 184 | |
| 185 | int |
| 186 | WrapperElement::revertToStart() |