| 76 | } |
| 77 | |
| 78 | void WriteOutEnergyRecord(const std::vector<float>& energyRecord, const std::string& baseFileName, const Dimensions3D& dims) |
| 79 | { |
| 80 | std::stringstream ss; |
| 81 | ss << baseFileName << "_" << dims.x << "x" << dims.y << "x" << dims.z << ".energy.csv"; |
| 82 | std::string fileName = ss.str(); |
| 83 | |
| 84 | // make CSV of energy records |
| 85 | std::ofstream file; |
| 86 | file.open(fileName); |
| 87 | for (float f : energyRecord) |
| 88 | file << "\"" << f << "\"\n"; |
| 89 | file.close(); |
| 90 | } |
nothing calls this directly
no outgoing calls
no test coverage detected