Removes uneeded .close() calls

These calls are not needed. ofstream's destructor will close the file.

Resolves #298.
This commit is contained in:
Trevor Hickey 2015-10-18 20:13:35 -04:00 committed by Ray Speth
parent 59f8fbc09d
commit b751087859

View file

@ -22,10 +22,8 @@ void writePlotFile(const std::string& fname, const std::string& fmt,
}
if (fmt == "TEC") {
outputTEC(f, plotTitle, names, data);
f.close();
} else if (fmt == "XL" || fmt == "CSV") {
outputExcel(f, plotTitle, names, data);
f.close();
} else {
throw CanteraError("writePlotFile",
"unsupported plot type:" + fmt);