MCPcopy Create free account
hub / github.com/chrxh/alien / setSimulationData

Method setSimulationData

source/EngineImpl/EngineWorker.cpp:231–243  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

229}
230
231void EngineWorker::setSimulationData(DataDescription const& dataToUpdate)
232{
233 DescriptionConverter converter(_settings.simulationParameters);
234
235 EngineWorkerGuard access(this);
236
237 _simulationCudaFacade->resizeArraysIfNecessary(converter.getArraySizes(dataToUpdate));
238
239 DataTO dataTO = provideTO();
240 converter.convertDescriptionToTO(dataTO, dataToUpdate);
241
242 _simulationCudaFacade->setSimulationData(dataTO);
243}
244
245void EngineWorker::removeSelectedObjects(bool includeClusters)
246{

Callers 15

TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45
TEST_FFunction · 0.45

Calls 2

getArraySizesMethod · 0.45

Tested by 15

TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36
TEST_FFunction · 0.36