MCPcopy Create free account
hub / github.com/Cantera/cantera / writeHeader

Method writeHeader

src/base/SolutionArray.cpp:968–981  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

966}
967
968void 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
983void SolutionArray::writeHeader(AnyMap& root, const string& name,
984 const string& desc, bool overwrite)

Callers

nothing calls this directly

Calls 8

CanteraErrorClass · 0.85
preambleFunction · 0.85
checkGroupMethod · 0.80
deleteGroupMethod · 0.80
writeAttributesMethod · 0.80
emptyMethod · 0.45
clearMethod · 0.45
updateMethod · 0.45

Tested by

no test coverage detected