| 806 | |
| 807 | |
| 808 | void SimulatorBase::buildModel() |
| 809 | { |
| 810 | initFluidData(); |
| 811 | |
| 812 | createEmitters(); |
| 813 | createAnimationFields(); |
| 814 | |
| 815 | Simulation *sim = Simulation::getCurrent(); |
| 816 | |
| 817 | if (sim->getTimeStep()) |
| 818 | sim->getTimeStep()->resize(); |
| 819 | |
| 820 | if (!sim->is2DSimulation()) |
| 821 | { |
| 822 | sim->setValue(Simulation::KERNEL_METHOD, Simulation::ENUM_KERNEL_PRECOMPUTED_CUBIC); |
| 823 | sim->setValue(Simulation::GRAD_KERNEL_METHOD, Simulation::ENUM_GRADKERNEL_PRECOMPUTED_CUBIC); |
| 824 | } |
| 825 | else |
| 826 | { |
| 827 | sim->setValue(Simulation::KERNEL_METHOD, Simulation::ENUM_KERNEL_CUBIC_2D); |
| 828 | sim->setValue(Simulation::GRAD_KERNEL_METHOD, Simulation::ENUM_GRADKERNEL_CUBIC_2D); |
| 829 | } |
| 830 | } |
| 831 | |
| 832 | void SimulatorBase::reset() |
| 833 | { |
nothing calls this directly
no test coverage detected