// *****************************************************************************
/*!
\file src/Statistics/PDFReducer.hpp
\copyright 2012-2015 J. Bakosi,
2016-2018 Los Alamos National Security, LLC.,
2019-2021 Triad National Security, LLC.,
2022-2025 J. Bakosi
All rights reserved. See the LICENSE file for details.
\brief Custom Charm++ reducer for merging PDFs across PEs
\details Custom Charm++ reducer for merging PDFs across PEs.
*/
// *****************************************************************************
#pragma once
#include <vector><--- Include file: not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include "NoWarning/charm++.hpp"<--- Include file: "NoWarning/charm++.hpp" not found.
#include "UniPDF.hpp"
namespace tk {
//! Serialize univariate PDF to raw memory stream
std::pair< int, std::unique_ptr<char[]> >
serialize( std::size_t meshid, const std::vector< tk::UniPDF >& u );
//! \brief Charm++ custom reducer for merging a univariate PDF during reduction
//! across PEs
CkReductionMsg*
mergeUniPDFs( int nmsg, CkReductionMsg **msgs );
} // tk::