flow 1.4.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
using IbmSolver

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.

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Function Documentation

◆ sameRow()

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

Definition at line 35 of file test_predict_weighted_mpi.cpp.

Referenced by compare().

◆ printRows()

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()

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()

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()

int main ( int argc,
char ** argv )

Definition at line 101 of file test_predict_weighted_mpi.cpp.

References compare(), LEVELS, MIN_EXTENT, printRows(), and weights().

Variable Documentation

◆ LEVELS

int LEVELS = 8
staticconstexpr

Definition at line 33 of file test_predict_weighted_mpi.cpp.

Referenced by main().

◆ MIN_EXTENT

int MIN_EXTENT = 4
static

Definition at line 33 of file test_predict_weighted_mpi.cpp.

Referenced by main().