flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
test_vof_blocks.cpp File Reference
#include <array>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <Kokkos_Core.hpp>
#include <limits>
#include <stdexcept>
#include <vector>
#include "flow_ibm.hpp"
#include "vof/block_container.hpp"
#include "vof/block_exchange.hpp"
#include "vof_advect_scenes.hpp"

Go to the source code of this file.

Classes

struct  I3
class  VofBlockExchange
 The gather / scatter / table replication of the block container. More...
class  VofBlockSet
 The container: a replicated table of blocks, the per-step orchestration (gather → advect → re-centre → scatter/union) and the per-bubble statistics. More...
struct  VofBox
 Half-open global cell box [lo, hi). More...
struct  VofPiece
 One contiguous transfer: the global cells g of a block that rank r owns, and where they sit in the block's EXTENDED local index space. More...
class  WyAdvector
 Weymouth-Yue split advection of a colour field on an extended (inner + ghost) block. More...

Macros

#define CHECK(cond)

Typedefs

using SExec
using SField

Functions

template<class F>
bool refusesMomentumBlocks (F &&f)
 Runs f, returns true iff it threw a std::runtime_error naming the momentum/block conflict.
void gateMomentumRefused ()
int main (int argc, char **argv)
long L3 (int x, int y, int z, I3 e)

Macro Definition Documentation

◆ CHECK

#define CHECK ( cond)
Value:
do { \
if (!(cond)) { \
std::fprintf(stderr, "CHECK failed: %s\n at %s:%d\n", #cond, __FILE__, __LINE__); \
++failures; \
} \
} while (0)

Definition at line 66 of file test_vof_blocks.cpp.

Referenced by gateMomentumRefused().

Typedef Documentation

◆ SExec

Definition at line 21 of file mac_stencils.hpp.

◆ SField

Definition at line 23 of file mac_stencils.hpp.

Function Documentation

◆ refusesMomentumBlocks()

template<class F>
bool refusesMomentumBlocks ( F && f)

Runs f, returns true iff it threw a std::runtime_error naming the momentum/block conflict.

Definition at line 1293 of file test_vof_blocks.cpp.

References F.

Referenced by gateMomentumRefused().

◆ gateMomentumRefused()

void gateMomentumRefused ( )

Definition at line 1304 of file test_vof_blocks.cpp.

References CHECK, and refusesMomentumBlocks().

Referenced by main().

◆ main()

int main ( int argc,
char ** argv )

Definition at line 1330 of file test_vof_blocks.cpp.

References failures, and gateMomentumRefused().

◆ L3()