flow 1.4.0
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>
using CCConst
using CCExec
using CCField

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.

◆ CCConst

Definition at line 27 of file mac_cutcell.hpp.

◆ CCExec

Definition at line 24 of file mac_cutcell.hpp.

◆ CCField

Definition at line 26 of file mac_cutcell.hpp.

Function Documentation

◆ source()

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

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

Definition at line 105 of file test_distributed_pressure.cpp.

Referenced by cg().

◆ aypx()

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

Definition at line 114 of file test_distributed_pressure.cpp.

Referenced by cg().

◆ cg()

template<class Exch>
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

◆ main()

int main ( int argc,
char ** argv )

Variable Documentation

◆ kDim

int kDim = 3
staticconstexpr

Definition at line 37 of file test_distributed_pressure.cpp.

◆ G

int G = 1
static

Definition at line 37 of file test_distributed_pressure.cpp.

Referenced by Reduce::dot(), Reduce::maxabs(), and Reduce::removeMean().

◆ CGIT

int CGIT = 40
static

Definition at line 37 of file test_distributed_pressure.cpp.

Referenced by main().