Skip to content

Commit

Permalink
Correct order for adding "extra" SolutionArray fields in YAML output
Browse files Browse the repository at this point in the history
  • Loading branch information
speth committed Aug 27, 2024
1 parent 7d51556 commit 42eeab8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/base/SolutionArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1227,8 +1227,8 @@ void SolutionArray::writeEntry(AnyMap& root, const string& name, const string& s
data["components"] = componentNames();
}

for (auto& [key, value] : *m_extra) {
data[key] = value;
for (auto& [_, key] : *m_order) {
data[key] = m_extra->at(key);
}

auto phase = m_sol->thermo();
Expand Down

0 comments on commit 42eeab8

Please sign in to comment.