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

Method getEnergy

source/EngineTests/IntegrationTestFramework.cpp:30–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30double IntegrationTestFramework::getEnergy(DataDescription const& data) const
31{
32 double result = 0;
33 for (auto const& cell : data.cells) {
34 result += cell.energy;
35 }
36 for (auto const& particle : data.particles) {
37 result += particle.energy;
38 }
39 return result;
40}
41
42std::unordered_map<uint64_t, CellDescription> IntegrationTestFramework::getCellById(DataDescription const& data) const
43{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected