| 966 | } |
| 967 | |
| 968 | void SolutionArray::writeHeader(const string& fname, const string& name, |
| 969 | const string& desc, bool overwrite) |
| 970 | { |
| 971 | Storage file(fname, true); |
| 972 | if (file.checkGroup(name, true)) { |
| 973 | if (!overwrite) { |
| 974 | throw CanteraError("SolutionArray::writeHeader", |
| 975 | "Group name '{}' exists; use 'overwrite' argument to overwrite.", name); |
| 976 | } |
| 977 | file.deleteGroup(name); |
| 978 | file.checkGroup(name, true); |
| 979 | } |
| 980 | file.writeAttributes(name, preamble(desc)); |
| 981 | } |
| 982 | |
| 983 | void SolutionArray::writeHeader(AnyMap& root, const string& name, |
| 984 | const string& desc, bool overwrite) |
nothing calls this directly
no test coverage detected