flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_scalar_cutcell_geometry_mpi.cpp File Reference
#include <mpi.h>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <Kokkos_Core.hpp>
#include <map>
#include <vector>
#include "flow_ibm.hpp"
#include "peclet/core/decomp/block_decomposer.hpp"

Go to the source code of this file.

Classes

struct  Host

Macros

#define CHECK(cond)

Functions

static bool same (double a, double b)
static int expectIndex (int i, int n, int bcLo, int bcHi)
static std::vector< double > sphereSdf (const double c[3], double R)
static Host hostRecord (IbmSolver &s, int nx, int ny, int nz)
static void runCase (const char *label, const double c[3], double R, const int bc[6], int rank, int size)
int main (int argc, char **argv)

Variables

static constexpr int G = IbmSolver::G
static constexpr int N = 32
static int failures = 0

Macro Definition Documentation

◆ CHECK

#define CHECK ( cond)
Value:
do { \
if (!(cond)) { \
std::fprintf(stderr, "CHECK failed: %s\n at %s:%d\n", #cond, __FILE__, __LINE__); \
++failures; \
} \
} while (0)

Definition at line 33 of file test_scalar_cutcell_geometry_mpi.cpp.

Referenced by runCase().

Function Documentation

◆ same()

bool same ( double a,
double b )
static

◆ expectIndex()

int expectIndex ( int i,
int n,
int bcLo,
int bcHi )
static

Definition at line 45 of file test_scalar_cutcell_geometry_mpi.cpp.

Referenced by runCase().

◆ sphereSdf()

std::vector< double > sphereSdf ( const double c[3],
double R )
static

Definition at line 56 of file test_scalar_cutcell_geometry_mpi.cpp.

References N, and R.

◆ hostRecord()

Host hostRecord ( IbmSolver & s,
int nx,
int ny,
int nz )
static

Definition at line 77 of file test_scalar_cutcell_geometry_mpi.cpp.

References G.

Referenced by runCase().

◆ runCase()

◆ main()

int main ( int argc,
char ** argv )

Definition at line 249 of file test_scalar_cutcell_geometry_mpi.cpp.

References failures, and runCase().

Variable Documentation

◆ G

int G = IbmSolver::G
staticconstexpr

Definition at line 29 of file test_scalar_cutcell_geometry_mpi.cpp.

◆ N

int N = 32
staticconstexpr

Definition at line 30 of file test_scalar_cutcell_geometry_mpi.cpp.

◆ failures

int failures = 0
static

Definition at line 32 of file test_scalar_cutcell_geometry_mpi.cpp.

Referenced by main().