#include <mpi.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <Kokkos_Core.hpp>
#include <vector>
#include "flow_ibm.hpp"
#include "peclet/core/common/types.hpp"
#include "peclet/core/decomp/block_decomposer.hpp"
Go to the source code of this file.
|
| static double | colourAt (const Config &c, int x, int y, int z) |
| template<class Fn> |
| static std::vector< double > | blockOf (Fn f, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static void | configure (IbmSolver &s, const Config &c, int ox, int oy, int oz, int lnx, int lny, int lnz) |
| static std::vector< double > | gatherGlobal (const std::vector< double > &local, int ox, int oy, int oz, int lnx, int lny, int lnz, int rank, int size) |
| static long | countBitDiff (const std::vector< double > &a, const std::vector< double > &b, double &mx) |
| int | main (int argc, char **argv) |
|
| static constexpr int | NX = 16 |
| static constexpr int | NY = 16 |
| static constexpr int | NZ = 32 |
| static constexpr std::size_t | GCELLS = (std::size_t)NX * NY * NZ |
◆ IbmSolver
◆ colourAt()
| double colourAt |
( |
const Config & | c, |
|
|
int | x, |
|
|
int | y, |
|
|
int | z ) |
|
static |
◆ blockOf()
template<class Fn>
| std::vector< double > blockOf |
( |
Fn | f, |
|
|
int | ox, |
|
|
int | oy, |
|
|
int | oz, |
|
|
int | lnx, |
|
|
int | lny, |
|
|
int | lnz ) |
|
static |
◆ configure()
| void configure |
( |
IbmSolver & | s, |
|
|
const Config & | c, |
|
|
int | ox, |
|
|
int | oy, |
|
|
int | oz, |
|
|
int | lnx, |
|
|
int | lny, |
|
|
int | lnz ) |
|
static |
◆ gatherGlobal()
| std::vector< double > gatherGlobal |
( |
const std::vector< double > & | local, |
|
|
int | ox, |
|
|
int | oy, |
|
|
int | oz, |
|
|
int | lnx, |
|
|
int | lny, |
|
|
int | lnz, |
|
|
int | rank, |
|
|
int | size ) |
|
static |
◆ countBitDiff()
| long countBitDiff |
( |
const std::vector< double > & | a, |
|
|
const std::vector< double > & | b, |
|
|
double & | mx ) |
|
static |
◆ main()
| int main |
( |
int | argc, |
|
|
char ** | argv ) |
Definition at line 149 of file test_vof_curvature_mpi.cpp.
References peclet::flow::Solver< Grid >::computeVofCurvature(), configure(), countBitDiff(), gatherGlobal(), GCELLS, peclet::flow::Solver< Grid >::getVofCurvature(), peclet::flow::Solver< Grid >::getVofCurvatureBranch(), NX, NY, NZ, and peclet::flow::Solver< Grid >::vofCurvatureStats().
◆ NX
◆ NY
◆ NZ
◆ GCELLS
| std::size_t GCELLS = (std::size_t)NX * NY * NZ |
|
staticconstexpr |