1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
// *****************************************************************************
/*!
  \file      src/Inciter/IntegralReducer.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 integrals across PEs
  \details   Custom Charm++ reducer for merging integrals across PEs.
*/
// *****************************************************************************
#pragma once

#include <vector><--- Include file:  not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <map><--- Include file:  not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <memory><--- Include file:  not found. Please note: Cppcheck does not need standard library headers to get proper results.
#include <utility><--- 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 "Types.hpp"

namespace inciter {
namespace integrals {

//! Serialize to raw memory stream
std::pair< int, std::unique_ptr<char[]> >
serialize( std::size_t meshid,
           const std::vector< std::map< int, tk::real > >& d );

//! Charm++ custom reducer for merging duuring reduction across PEs
CkReductionMsg*
mergeIntegrals( int nmsg, CkReductionMsg **msgs );

} // integrals::
} // inciter::