Skip to content

Commit

Permalink
[base] Fix 1522
Browse files Browse the repository at this point in the history
Information on reactions in the phase input section is kept in
user data, but cannot be used for the serialization, as there
is no bookkeeping of where reactions originated. As it is not
essential to retain this information, the user input is deleted.
  • Loading branch information
ischoegl authored and speth committed Jul 27, 2023
1 parent 5f1014c commit 7fd42ac
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/base/Solution.cpp
Expand Up @@ -118,6 +118,10 @@ AnyMap Solution::parameters(bool withInput) const
if (withInput) {
auto transport = out["transport"];
AnyMap input = m_thermo->input();
if (input.hasKey("reactions")) {
// all reactions are listed in the standard 'reactions' section
input.erase("reactions");
}
out.update(input);
if (input.hasKey("transport")) {
// revert changes / ensure that correct model is referenced
Expand Down

0 comments on commit 7fd42ac

Please sign in to comment.