MCPcopy Create free account
hub / github.com/NVIDIA-RTX/STBN / WriteOutEnergyRecord

Function WriteOutEnergyRecord

Libraries/Vector/Debug/DebugFileExport.cpp:78–90  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected