core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
Loading...
Searching...
No Matches
grid_redistribute.hpp File Reference
#include <cstring>
#include <vector>
#include "peclet/core/common/mpi.hpp"
#include "peclet/core/common/types.hpp"
#include "peclet/core/decomp/block_decomposer.hpp"
#include "peclet/core/halo/nbx.hpp"

Go to the source code of this file.

Namespaces

namespace  peclet
 
namespace  peclet::core
 
namespace  peclet::core::decomp
 
namespace  peclet::core::decomp::detail
 

Functions

template<int Dim>
bool peclet::core::decomp::detail::intersectBox (const Block< Dim > &a, const Block< Dim > &b, IVec< Dim > &origin, IVec< Dim > &size)
 
template<int Dim>
Index peclet::core::decomp::detail::localFlat (const IVec< Dim > &gcell, const Block< Dim > &blk, int g)
 
Index peclet::core::decomp::detail::boxCellCount (const IVec< 3 > &size)
 
template<class F >
void peclet::core::decomp::detail::forBox (const IVec< 3 > &origin, const IVec< 3 > &size, F &&f)
 
template<class T >
void peclet::core::decomp::redistributeGridFields (const BlockDecomposer< 3 > &oldDec, const BlockDecomposer< 3 > &newDec, int rank, int g, const std::vector< const T * > &oldFields, const std::vector< T * > &newFields, MPI_Comm comm)