#include <mpi.h>
#include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <Kokkos_Core.hpp>
#include <vector>
#include "flow_ibm.hpp"
#include "peclet/core/decomp/block_decomposer.hpp"
Go to the source code of this file.
|
| static bool | same (double a, double b) |
| |
| static std::vector< double > | sphereSdf (int n, double cx, double cy, double cz, double R) |
| |
| static void | record (IbmSolver &s, Run &r, bool transient) |
| |
| static void | compare (const char *tag, int n, const std::vector< double > &gsdf, FlowSetup flow, ScalarSetup scalar, Solve solve, bool checkLevels=false, bool gated=true, bool cutcellPressure=false, Post post=nullptr, double identityBound=1e-12) |
| |
| int | main (int argc, char **argv) |
| |
|
| static constexpr int | G = IbmSolver::G |
| |
| static int | failures = 0 |
| |
| static int | rank_ = 0 |
| |
| static int | size_ = 1 |
| |
◆ CHECK
Value: do { \
if (!(cond)) { \
std::fprintf(stderr, "CHECK failed: %s\n at %s:%d\n", #cond, __FILE__, __LINE__); \
} \
} while (0)
Definition at line 56 of file test_scalar_cutcell_solve_mpi.cpp.
◆ IbmSolver
◆ FlowSetup
◆ ScalarSetup
◆ Solve
◆ Post
◆ same()
| static bool same |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
static |
◆ sphereSdf()
| static std::vector< double > sphereSdf |
( |
int |
n, |
|
|
double |
cx, |
|
|
double |
cy, |
|
|
double |
cz, |
|
|
double |
R |
|
) |
| |
|
static |
◆ record()
| static void record |
( |
IbmSolver & |
s, |
|
|
Run & |
r, |
|
|
bool |
transient |
|
) |
| |
|
static |
◆ compare()
| static void compare |
( |
const char * |
tag, |
|
|
int |
n, |
|
|
const std::vector< double > & |
gsdf, |
|
|
FlowSetup |
flow, |
|
|
ScalarSetup |
scalar, |
|
|
Solve |
solve, |
|
|
bool |
checkLevels = false, |
|
|
bool |
gated = true, |
|
|
bool |
cutcellPressure = false, |
|
|
Post |
post = nullptr, |
|
|
double |
identityBound = 1e-12 |
|
) |
| |
|
static |
Definition at line 105 of file test_scalar_cutcell_solve_mpi.cpp.
References peclet::flow::ScalarField::c, CHECK, peclet::flow::ScalarField::cut, G, peclet::flow::VelocityMG::level(), peclet::flow::VelocityMG::levels(), maxDiff(), rank_, same(), peclet::flow::Solver< Grid >::scalarField(), peclet::flow::VelocityMG::setMetric(), peclet::flow::Solver< Grid >::setScalarTolerance(), peclet::flow::Solver< Grid >::setSolid(), and size_.
Referenced by main().
◆ main()
| int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
Definition at line 220 of file test_scalar_cutcell_solve_mpi.cpp.
References CHECK, compare(), peclet::flow::ScalarField::cut, failures, peclet::flow::Solver< Grid >::fieldView(), G, N, rank_, record(), same(), peclet::flow::Solver< Grid >::scalarField(), size_, sphereSdf(), and U.
| constexpr int G = IbmSolver::G |
|
staticconstexpr |
◆ failures
◆ rank_
◆ size_