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

Go to the source code of this file.

Classes

struct  Result

Typedefs

using IbmSolver

Enumerations

enum  Driver { kPcg , kFcg , kCheb }

Functions

static double colourAt (int x, int y)
static double noiseAt (int c, int x, int y, int z)
static Result run (IbmSolver &s, Driver d, double ratio, int ox, int oy, int oz, int lnx, int lny, int lnz, bool trilinear=false)
static bool sameOnAll (double v, MPI_Comm comm)
int main (int argc, char **argv)

Variables

static constexpr int N = 16
static constexpr int STEPS = 3
static constexpr int MAXIT = 400
static constexpr double RTOL = 1e-10

Typedef Documentation

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Enumeration Type Documentation

◆ Driver

enum Driver
Enumerator
kPcg 
kFcg 
kCheb 

Definition at line 37 of file test_cg_guard_mpi.cpp.

Function Documentation

◆ colourAt()

double colourAt ( int x,
int y )
static

Definition at line 39 of file test_cg_guard_mpi.cpp.

References N.

Referenced by run().

◆ noiseAt()

double noiseAt ( int c,
int x,
int y,
int z )
static

Definition at line 48 of file test_cg_guard_mpi.cpp.

Referenced by run().

◆ run()

Result run ( IbmSolver & s,
Driver d,
double ratio,
int ox,
int oy,
int oz,
int lnx,
int lny,
int lnz,
bool trilinear = false )
static

Definition at line 63 of file test_cg_guard_mpi.cpp.

References colourAt(), kFcg, kPcg, peclet::flow::LinearMix, MAXIT, noiseAt(), RTOL, and STEPS.

Referenced by main().

◆ sameOnAll()

bool sameOnAll ( double v,
MPI_Comm comm )
static

Definition at line 113 of file test_cg_guard_mpi.cpp.

Referenced by main().

◆ main()

int main ( int argc,
char ** argv )

Definition at line 120 of file test_cg_guard_mpi.cpp.

References check(), fails, kCheb, kFcg, kPcg, MAXIT, N, RTOL, run(), same(), and sameOnAll().

Variable Documentation

◆ N

int N = 16
staticconstexpr

Definition at line 34 of file test_cg_guard_mpi.cpp.

◆ STEPS

int STEPS = 3
static

Definition at line 34 of file test_cg_guard_mpi.cpp.

◆ MAXIT

int MAXIT = 400
static

Definition at line 34 of file test_cg_guard_mpi.cpp.

Referenced by configure(), main(), and run().

◆ RTOL

double RTOL = 1e-10
staticconstexpr

Definition at line 35 of file test_cg_guard_mpi.cpp.

Referenced by configure(), main(), and run().