mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
[SolutionArray] Do no return group name
This commit is contained in:
parent
fe807d5986
commit
5841dcda84
@ -231,8 +231,8 @@ public:
|
|||||||
* @param overwrite Force overwrite if sub exists; optional (default=false)
|
* @param overwrite Force overwrite if sub exists; optional (default=false)
|
||||||
* @param compression Compression level; optional (default=0; HDF only)
|
* @param compression Compression level; optional (default=0; HDF only)
|
||||||
*/
|
*/
|
||||||
string save(const string& fname, const string& id, const string& sub,
|
void save(const string& fname, const string& id, const string& sub,
|
||||||
const string& desc, bool overwrite=false, int compression=0);
|
const string& desc, bool overwrite=false, int compression=0);
|
||||||
|
|
||||||
/*!
|
/*!
|
||||||
* Read header data from container file.
|
* Read header data from container file.
|
||||||
|
@ -781,7 +781,7 @@ void SolutionArray::append(const vector<double>& state, const AnyMap& extra)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
string SolutionArray::save(const string& fname, const string& id, const string& sub,
|
void SolutionArray::save(const string& fname, const string& id, const string& sub,
|
||||||
const string& desc, bool overwrite, int compression)
|
const string& desc, bool overwrite, int compression)
|
||||||
{
|
{
|
||||||
if (m_size < m_dataSize) {
|
if (m_size < m_dataSize) {
|
||||||
@ -793,7 +793,7 @@ string SolutionArray::save(const string& fname, const string& id, const string&
|
|||||||
if (extension == "h5" || extension == "hdf" || extension == "hdf5") {
|
if (extension == "h5" || extension == "hdf" || extension == "hdf5") {
|
||||||
writeHeader(fname, id, desc, overwrite);
|
writeHeader(fname, id, desc, overwrite);
|
||||||
writeEntry(fname, id, sub, true, compression);
|
writeEntry(fname, id, sub, true, compression);
|
||||||
return id;
|
return;
|
||||||
}
|
}
|
||||||
if (extension == "yaml" || extension == "yml") {
|
if (extension == "yaml" || extension == "yml") {
|
||||||
// Check for an existing file and load it if present
|
// Check for an existing file and load it if present
|
||||||
@ -808,7 +808,7 @@ string SolutionArray::save(const string& fname, const string& id, const string&
|
|||||||
std::ofstream out(fname);
|
std::ofstream out(fname);
|
||||||
out << data.toYamlString();
|
out << data.toYamlString();
|
||||||
AnyMap::clearCachedFile(fname);
|
AnyMap::clearCachedFile(fname);
|
||||||
return id;
|
return;
|
||||||
}
|
}
|
||||||
throw CanteraError("SolutionArray::save",
|
throw CanteraError("SolutionArray::save",
|
||||||
"Unknown file extension '{}'.", extension);
|
"Unknown file extension '{}'.", extension);
|
||||||
|
Loading…
Reference in New Issue
Block a user