flow
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_distributed_pressure.cpp File Reference
#include <mpi.h>
#include <array>
#include <cmath>
#include <cstdio>
#include <Kokkos_Core.hpp>
#include "mac_pressure.hpp"
#include "peclet/core/common/types.hpp"
#include "peclet/core/common/view.hpp"
#include "peclet/core/decomp/block_decomposer.hpp"
#include "peclet/core/halo/grid_halo.hpp"
#include "peclet/core/halo/grid_halo_topology.hpp"

Go to the source code of this file.

Classes

struct  Reduce
 

Typedefs

using OpV = Kokkos::View< double *, peclet::flow::CCMem >
 

Functions

static double source (int gx, int gy, int gz, IVec< kDim > gs)
 
static void axpy (CCField y, double a, CCConst x)
 
static void aypx (CCField y, double a, CCConst x)
 
template<class Exch >
static void cg (CCField x, CCConst b, OpV AC, OpV AW, OpV AE, OpV AS, OpV AN, OpV AB, OpV AT, C3 e, Exch &&exchange, const Reduce &red, long gCells, int iters)
 
int main (int argc, char **argv)
 

Variables

static constexpr int kDim = 3
 
static constexpr int G = 1
 
static constexpr int CGIT = 40
 

Typedef Documentation

◆ OpV

using OpV = Kokkos::View<double*, peclet::flow::CCMem>

Definition at line 35 of file test_distributed_pressure.cpp.

Function Documentation

◆ source()

static double source ( int  gx,
int  gy,
int  gz,
IVec< kDim gs 
)
static

Definition at line 39 of file test_distributed_pressure.cpp.

Referenced by main().

◆ axpy()

static void axpy ( CCField  y,
double  a,
CCConst  x 
)
static

Definition at line 113 of file test_distributed_pressure.cpp.

Referenced by cg().

◆ aypx()

static void aypx ( CCField  y,
double  a,
CCConst  x 
)
static

Definition at line 122 of file test_distributed_pressure.cpp.

Referenced by cg().

◆ cg()

template<class Exch >
static void cg ( CCField  x,
CCConst  b,
OpV  AC,
OpV  AW,
OpV  AE,
OpV  AS,
OpV  AN,
OpV  AB,
OpV  AT,
C3  e,
Exch &&  exchange,
const Reduce red,
long  gCells,
int  iters 
)
static

Definition at line 135 of file test_distributed_pressure.cpp.

References AC, axpy(), aypx(), Reduce::dot(), G, and Reduce::removeMean().

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Variable Documentation

◆ kDim

constexpr int kDim = 3
staticconstexpr

Definition at line 37 of file test_distributed_pressure.cpp.

◆ G

constexpr int G = 1
static

◆ CGIT

constexpr int CGIT = 40
static

Definition at line 37 of file test_distributed_pressure.cpp.

Referenced by main().