flow 1.3.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.

Macros

#define CHECK(cond)
 

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)
 

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.

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 1287 of file test_vof_blocks.cpp.

Referenced by gateMomentumRefused().

◆ gateMomentumRefused()

void gateMomentumRefused ( )

Definition at line 1298 of file test_vof_blocks.cpp.

References CHECK, and refusesMomentumBlocks().

Referenced by main().

◆ main()

int main ( int  argc,
char **  argv 
)

Definition at line 1323 of file test_vof_blocks.cpp.

References failures, and gateMomentumRefused().