Removes uneeded .close() calls
These calls are not needed. ofstream's destructor will close the file. Resolves #298.
This commit is contained in:
parent
59f8fbc09d
commit
b751087859
1 changed files with 0 additions and 2 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue