Skip to content

Commit

Permalink
[onedim] Fix order of components
Browse files Browse the repository at this point in the history
A domain may define extra state entries added after species, where the
appropriate order needs to be maintained.
  • Loading branch information
ischoegl authored and speth committed Apr 16, 2023
1 parent 2f98dd4 commit 0c6a566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/oneD/StFlow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -807,7 +807,7 @@ shared_ptr<SolutionArray> StFlow::asArray(const double* soln) const
data[j] = soln[index(i, j)];
}
if (!arr->hasComponent(name)) {
arr->addExtra(name, false); // add to front
arr->addExtra(name, componentIndex(name) > c_offset_Y);
}
value = data;
arr->setComponent(name, value);
Expand Down

0 comments on commit 0c6a566

Please sign in to comment.