Skip to content

Commit

Permalink
Add note to docs about ordering of history outputs h/t AMD
Browse files Browse the repository at this point in the history
  • Loading branch information
brryan committed Nov 13, 2024
1 parent 6939da2 commit 0968c3e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion doc/sphinx/src/outputs.rst
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,9 @@ block might look like

This will produce a text file (``.hst``) output file every 1 units of
simulation time. The content of the file is determined by the functions
enrolled by specific packages, see :ref:`state history output`.
enrolled by specific packages, see :ref:`state history output`. Per-package history
outputs will always be in alphabetical order by package name, which may not match
the order in which packages were added to a simulation.

Histograms
----------
Expand Down
3 changes: 2 additions & 1 deletion src/outputs/history.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ void HistoryOutput::WriteOutputFile(Mesh *pm, ParameterInput *pin, SimTime *tm,
md_base->Initialize(pm->block_list, pm);
}

// Loop over all packages of the application in alphabetical order
// Loop over all packages of the application in alphabetical order to ensure consistency
// of ordering of data in columns.
std::vector<std::string> keys;
for (const auto &pair : packages) {
keys.push_back(pair.first);
Expand Down

0 comments on commit 0968c3e

Please sign in to comment.