| 11 | int DebugTools::DETERMINE_VELOCITY_CHANGES = -1; |
| 12 | |
| 13 | DebugTools::DebugTools() : |
| 14 | ParameterObject() |
| 15 | { |
| 16 | m_determineThreadIds = false; |
| 17 | m_determineNumNeighbors = false; |
| 18 | m_determineVelocityChanges = false; |
| 19 | |
| 20 | Simulation* sim = Simulation::getCurrent(); |
| 21 | const unsigned int nModels = sim->numberOfFluidModels(); |
| 22 | for (unsigned int fluidModelIndex = 0; fluidModelIndex < nModels; fluidModelIndex++) |
| 23 | { |
| 24 | FluidModel* model = sim->getFluidModel(fluidModelIndex); |
| 25 | model->addField({ "threadId", FieldType::UInt, [this, fluidModelIndex](const unsigned int i) -> unsigned int* { return &m_threadIds[fluidModelIndex][i]; } }); |
| 26 | model->addField({ "numNeighbors", FieldType::UInt, [this, fluidModelIndex](const unsigned int i) -> unsigned int* { return &m_numNeighbors[fluidModelIndex][i]; } }); |
| 27 | model->addField({ "velocityChanges", FieldType::Vector3, [this, fluidModelIndex](const unsigned int i) -> Real* { return &m_velocityChanges[fluidModelIndex][i][0]; } }); |
| 28 | } |
| 29 | } |
| 30 | |
| 31 | DebugTools::~DebugTools() |
| 32 | { |
nothing calls this directly
no test coverage detected