| 429 | } |
| 430 | |
| 431 | static int |
| 432 | resetModel(ClientData clientData, Tcl_Interp *interp, Tcl_Size argc, TCL_Char ** const argv) |
| 433 | { |
| 434 | assert(clientData != nullptr); |
| 435 | BasicAnalysisBuilder *builder = (BasicAnalysisBuilder*)clientData; |
| 436 | |
| 437 | Domain* domain = builder->getDomain(); |
| 438 | assert(domain != nullptr); |
| 439 | domain->revertToStart(); |
| 440 | |
| 441 | TransientIntegrator *theTransientIntegrator = builder->getTransientIntegrator(); |
| 442 | if (theTransientIntegrator != nullptr) { |
| 443 | theTransientIntegrator->revertToStart(); |
| 444 | } |
| 445 | return TCL_OK; |
| 446 | } |
| 447 | |
| 448 | |
| 449 | int |
nothing calls this directly
no test coverage detected