| 830 | } |
| 831 | |
| 832 | void SimulatorBase::reset() |
| 833 | { |
| 834 | Utilities::Timing::printAverageTimes(); |
| 835 | Utilities::Timing::reset(); |
| 836 | |
| 837 | Utilities::Counting::printAverageCounts(); |
| 838 | Utilities::Counting::reset(); |
| 839 | |
| 840 | // reset the time step size if using a CFL condition |
| 841 | if (Simulation::getCurrent()->getValue<int>(Simulation::CFL_METHOD) != Simulation::ENUM_CFL_NONE) |
| 842 | getSceneLoader()->readParameterObject("Configuration", TimeManager::getCurrent()); |
| 843 | |
| 844 | Simulation::getCurrent()->reset(); |
| 845 | #ifdef USE_DEBUG_TOOLS |
| 846 | Simulation::getCurrent()->getDebugTools()->reset(); |
| 847 | #endif |
| 848 | |
| 849 | m_boundarySimulator->reset(); |
| 850 | Simulation::getCurrent()->getNeighborhoodSearch()->reset(); |
| 851 | if (m_gui) |
| 852 | m_gui->reset(); |
| 853 | |
| 854 | m_nextFrameTime = 0.0; |
| 855 | m_nextFrameTimeState = 0.0; |
| 856 | m_frameCounter = 1; |
| 857 | m_isFirstFrame = true; |
| 858 | m_isFirstFrameVTK = true; |
| 859 | #ifdef DL_OUTPUT |
| 860 | m_nextTiming = 1.0; |
| 861 | #endif |
| 862 | updateScalarField(); |
| 863 | |
| 864 | for (size_t i = 0; i < m_particleExporters.size(); i++) |
| 865 | m_particleExporters[i].m_exporter->reset(); |
| 866 | for (size_t i = 0; i < m_rbExporters.size(); i++) |
| 867 | m_rbExporters[i].m_exporter->reset(); |
| 868 | |
| 869 | if (m_resetCB) |
| 870 | m_resetCB(); |
| 871 | |
| 872 | #ifdef USE_EMBEDDED_PYTHON |
| 873 | if (m_scriptObject) |
| 874 | m_scriptObject->execResetFct(); |
| 875 | #endif |
| 876 | } |
| 877 | |
| 878 | void SimulatorBase::singleTimeStep() |
| 879 | { |
nothing calls this directly
no test coverage detected