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

Go to the source code of this file.

Classes

struct  Config

Typedefs

using IbmSolver

Functions

static std::vector< double > blobs (int line)
static std::vector< double > slice (const std::vector< double > &g, int ox, int oy, int oz, int lnx, int lny, int lnz)
static void configure (IbmSolver &s, const Config &c, const std::vector< double > &forceLocal)
static std::vector< double > gatherGlobal (const std::vector< double > &local, int ox, int oy, int oz, int lnx, int lny, int lnz, int rank, int size)
static double maxAbsDiff (const std::vector< double > &a, const std::vector< double > &b)
static double maxAbs (const std::vector< double > &a)
int main (int argc, char **argv)

Variables

static constexpr int N = 32
static constexpr int STEPS = 2
static constexpr std::size_t GCELLS = (std::size_t)N * N * N

Typedef Documentation

◆ IbmSolver

Definition at line 5663 of file flow_ibm.hpp.

Function Documentation

◆ blobs()

std::vector< double > blobs ( int line)
static

Definition at line 64 of file test_cellforce_mpi.cpp.

References GCELLS, and N.

◆ slice()

◆ configure()

void configure ( IbmSolver & s,
const Config & c,
const std::vector< double > & forceLocal )
static

Definition at line 96 of file test_cellforce_mpi.cpp.

Referenced by main().

◆ gatherGlobal()

std::vector< double > gatherGlobal ( const std::vector< double > & local,
int ox,
int oy,
int oz,
int lnx,
int lny,
int lnz,
int rank,
int size )
static

Definition at line 109 of file test_cellforce_mpi.cpp.

References GCELLS, and N.

Referenced by main().

◆ maxAbsDiff()

double maxAbsDiff ( const std::vector< double > & a,
const std::vector< double > & b )
static

Definition at line 147 of file test_cellforce_mpi.cpp.

Referenced by main().

◆ maxAbs()

double maxAbs ( const std::vector< double > & a)
static

Definition at line 157 of file test_cellforce_mpi.cpp.

Referenced by main().

◆ main()

Variable Documentation

◆ N

int N = 32
staticconstexpr

Definition at line 53 of file test_cellforce_mpi.cpp.

◆ STEPS

int STEPS = 2
static

Definition at line 53 of file test_cellforce_mpi.cpp.

◆ GCELLS

std::size_t GCELLS = (std::size_t)N * N * N
staticconstexpr

Definition at line 54 of file test_cellforce_mpi.cpp.