flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_predict_weighted_mpi.cpp File Reference
#include <mpi.h>
#include <cmath>
#include <cstdio>
#include <Kokkos_Core.hpp>
#include <string>
#include <vector>
#include "flow_ibm.hpp"
#include "peclet/core/common/types.hpp"

Go to the source code of this file.

Classes

struct  Grid3
 

Typedefs

using Row = CutcellMG::PlanRow
 

Functions

static bool sameRow (const Row &a, const Row &b)
 
static void printRows (const char *tag, const std::vector< Row > &rows)
 
static bool compare (const char *what, const std::vector< Row > &built, const std::vector< Row > &predicted, int rank)
 
static std::vector< peclet::core::Real > weights (int kind, Grid3 g)
 
int main (int argc, char **argv)
 

Variables

static constexpr int LEVELS = 8
 
static constexpr int MIN_EXTENT = 4
 

Typedef Documentation

◆ Row

using Row = CutcellMG::PlanRow

Definition at line 31 of file test_predict_weighted_mpi.cpp.

Function Documentation

◆ sameRow()

static bool sameRow ( const Row &  a,
const Row &  b 
)
static

Definition at line 35 of file test_predict_weighted_mpi.cpp.

Referenced by compare().

◆ printRows()

static void printRows ( const char *  tag,
const std::vector< Row > &  rows 
)
static

Definition at line 43 of file test_predict_weighted_mpi.cpp.

Referenced by compare(), and main().

◆ compare()

static bool compare ( const char *  what,
const std::vector< Row > &  built,
const std::vector< Row > &  predicted,
int  rank 
)
static

Definition at line 55 of file test_predict_weighted_mpi.cpp.

References printRows(), and sameRow().

Referenced by main().

◆ weights()

static std::vector< peclet::core::Real > weights ( int  kind,
Grid3  g 
)
static

Definition at line 82 of file test_predict_weighted_mpi.cpp.

Referenced by main(), and NB_MODULE().

◆ main()

Variable Documentation

◆ LEVELS

constexpr int LEVELS = 8
staticconstexpr

Definition at line 33 of file test_predict_weighted_mpi.cpp.

Referenced by main().

◆ MIN_EXTENT

constexpr int MIN_EXTENT = 4
static

Definition at line 33 of file test_predict_weighted_mpi.cpp.

Referenced by main().