flow 1.3.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_cutcellmg_aniso_mpi.cpp File Reference
#include <mpi.h>
#include <cmath>
#include <cstdio>
#include <Kokkos_Core.hpp>
#include <utility>
#include <vector>
#include "mac_cutcell.hpp"
#include "mac_cutcell_mg.hpp"
#include "peclet/core/common/types.hpp"

Go to the source code of this file.

Typedefs

using HostVec = decltype(Kokkos::create_mirror_view(std::declval< CCField >()))
 

Functions

static double sdfAt (int gx, int gy, int gz, int nx, int ny, int nz, double dref)
 
static HostVec setupAndSolve (CutcellMG &mg, C3 ext, C3 og, int nx, int ny, int nz, bool collective, int *iters)
 
int main (int argc, char **argv)
 

Variables

static constexpr int G = 1
 
static constexpr int NLEV = 6
 
static constexpr int N = 32
 
static constexpr double LBOX = 1.0
 
static constexpr double RSPH = 0.3722
 

Typedef Documentation

◆ HostVec

using HostVec = decltype(Kokkos::create_mirror_view(std::declval<CCField>()))

Definition at line 57 of file test_cutcellmg_aniso_mpi.cpp.

Function Documentation

◆ sdfAt()

static double sdfAt ( int  gx,
int  gy,
int  gz,
int  nx,
int  ny,
int  nz,
double  dref 
)
static

Definition at line 46 of file test_cutcellmg_aniso_mpi.cpp.

References LBOX, and RSPH.

Referenced by setupAndSolve().

◆ setupAndSolve()

static HostVec setupAndSolve ( CutcellMG &  mg,
C3  ext,
C3  og,
int  nx,
int  ny,
int  nz,
bool  collective,
int *  iters 
)
static

◆ main()

Variable Documentation

◆ G

◆ NLEV

constexpr int NLEV = 6
static

Definition at line 41 of file test_cutcellmg_aniso_mpi.cpp.

Referenced by main().

◆ N

constexpr int N = 32
staticconstexpr

Definition at line 42 of file test_cutcellmg_aniso_mpi.cpp.

Referenced by main().

◆ LBOX

constexpr double LBOX = 1.0
staticconstexpr

Definition at line 43 of file test_cutcellmg_aniso_mpi.cpp.

Referenced by sdfAt(), and setupAndSolve().

◆ RSPH

constexpr double RSPH = 0.3722
static

Definition at line 43 of file test_cutcellmg_aniso_mpi.cpp.

Referenced by sdfAt().