flow 1.3.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)
 

Typedefs

using IbmSolver = peclet::flow::IbmSolver
 

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.

Typedef Documentation

◆ IbmSolver

Function Documentation

◆ same()

static bool same ( double  a,
double  b 
)
static

◆ expectIndex()

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

static 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.

◆ hostRecord()

static 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 247 of file test_scalar_cutcell_geometry_mpi.cpp.

References failures, and runCase().

Variable Documentation

◆ G

constexpr int G = IbmSolver::G
staticconstexpr

Definition at line 29 of file test_scalar_cutcell_geometry_mpi.cpp.

Referenced by hostRecord(), and runCase().

◆ N

constexpr int N = 32
staticconstexpr

Definition at line 30 of file test_scalar_cutcell_geometry_mpi.cpp.

Referenced by runCase(), and sphereSdf().

◆ failures

int failures = 0
static

Definition at line 32 of file test_scalar_cutcell_geometry_mpi.cpp.

Referenced by main().