diff --git a/src/outputs/history.cpp b/src/outputs/history.cpp index 51b4e523e7f0..2aade658fe00 100644 --- a/src/outputs/history.cpp +++ b/src/outputs/history.cpp @@ -101,7 +101,7 @@ void HistoryOutput::WriteOutputFile(Mesh *pm, ParameterInput *pin, SimTime *tm, std::sort(keys.begin(), keys.end()); for (const auto &key : keys) { const auto &pkg = packages[key]; - const auto ¶ms = pkg.second->AllParams(); + const auto ¶ms = pkg->AllParams(); // Check if the package has enrolled scalar history functions which are stored in the // Params under the `hist_param_key` name.