| 18 | } |
| 19 | |
| 20 | int LocationHelper::findLocationArrayIndex(SimulationParameters const& parameters, int locationIndex) |
| 21 | { |
| 22 | for (int i = 0; i < parameters.numZones; ++i) { |
| 23 | if (parameters.zone[i].locationIndex == locationIndex) { |
| 24 | return i; |
| 25 | } |
| 26 | } |
| 27 | for (int i = 0; i < parameters.numRadiationSources; ++i) { |
| 28 | if (parameters.radiationSource[i].locationIndex == locationIndex) { |
| 29 | return i; |
| 30 | } |
| 31 | } |
| 32 | THROW_NOT_IMPLEMENTED(); |
| 33 | } |
| 34 | |
| 35 | std::map<int, int> LocationHelper::onDecreaseLocationIndex(SimulationParameters& parameters, int locationIndex) |
| 36 | { |
nothing calls this directly
no outgoing calls
no test coverage detected