flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
CutcellMG Class Reference

#include <mac_cutcell_mg.hpp>

Classes

struct  Level
struct  ExitDot
struct  StartResidual
struct  OverlayScope
struct  AmgRows
struct  AmgRhsAnatomy
struct  ExitDotDist

Public Types

enum  : int {
  kPAp = 0 , kRn = 1 , kStop = 2 , kBottomFlag = 3 ,
  kRz = 4 , kRzNew = 5 , kBeta = 6 , kAlpha = 7 ,
  kMsum = 8 , kGRref = 9 , kG11 = 10 , kG12 = 11 ,
  kG22 = 12 , kGb1 = 13 , kGb2 = 14 , kChebRz = 15
}
enum  : int { kVcycleAuto = 0 , kVcycleFp64 = 1 , kVcycleFp32 = 2 }
enum class  EigenStart { Cold , ColdKeep , Warm }
enum  : int { kBottomAuto = 0 , kBottomDirect = 1 , kBottomAlgebraic = 2 }
using PinnedHost = Kokkos::SharedHostPinnedSpace

Public Member Functions

void assignLineAxes ()
void setMetric (const double hp[3])
 Per-axis cell spacings h_a' = h_a / hRef of the physical domain (doc/anisotropic_metric.md §1.1).
std::vector< C3 > levelRatios () const
 The per-level coarsening ratio actually chosen (the level table of §5, gate §8.5).
void init (int nx, int ny, int nz, int nLevels)
C3 levelRatio (C3 gs, C3 cf, const bool canA[3], C3 &next) const
int nLevels () const
int fp32Last () const
void computeFp32Last ()
Level & level (int L)
void setBoundaryConditions (const int bc[6])
void applyOutflowGhost (const Level &lv, CCField x, int g=G)
void applyNeumannGhost (const Level &lv, CCField x, int g=G)
void applyNeumannGhost (const Level &lv, VField x, int g=G)
template<class V>
void applyNeumannGhostT (const Level &lv, V x, int g)
void applyBoundaryOpenness (Level &lv, Level *fine=nullptr)
void applyBoundaryOpennessFrom (Level &lv, const CCField *fo, C3 fext, int fg, C3 fratio)
void saveOutflowPlanes (Level &lv)
void noteFluidCells (Level &lv)
void noteFluidCellsDevice (Level &lv)
bool hostAllFluid (const Level &lv) const
CCField level0Coefficient (int a) const
bool distributed () const
void setOpenness (CCConst ox, CCConst oy, CCConst oz, double idx2, double idy2, double idz2)
int solvePCG (CCField b, CCField x, CCField r, CCField p, CCField z, CCField Ap, int maxit, double rtol, int pre, int post, int bottom, const StarOverlay *star=nullptr, int nStar=0, C3 nnStar=C3{0, 0, 0})
template<class Attempt>
int solveWithRestart (CCField x, int maxit, Attempt &&attempt)
bool beginAttemptPrecision (int &maxit)
int failNonFiniteZ (const char *who, Level &l0, CCField x, int maxit)
int commRank () const
double guessResidual (Level &l0, CCField b, CCField x, CCField r, CCField Ap, const StarOverlay *star, int nStar, C3 nnStar)
double armStopTest (double r0, double rtol)
double matvecPAp (Level &l0, CCField Ap, CCField p, const StarOverlay *star, int nStar, C3 nnStar)
double cgUpdate (Level &l0, CCField x, CCField r, CCField p, CCField Ap, double alpha, bool fuse)
void finalRemoveMean (Level &l0, CCField x)
bool pApBreakdown (double pAp)
bool cgConverged (int &it, double rn, double r0, double rtol, double rref, bool trace)
double pcgPrecondRz (Level &l0, bool f32, bool fuse, CCField z, CCField r, double rn, int k, CCField p)
int solvePCGAttempt (CCField b, CCField x, CCField r, CCField p, CCField z, CCField Ap, int maxit, double rtol, int pre, int post, int bottom, const StarOverlay *star, int nStar, C3 nnStar)
void ensureScalars ()
Kokkos::View< double, CCMem > slot (int k) const
double readSlot (int k) const
void setSlot (int k, double v)
void dotTo (Level &lv, CCField a, CCField b, int k)
void copyDotTo (Level &lv, CCField p, CCField r, CCField z, int k)
bool hostKrylovFusion () const
void matvecDotTo (Level &l0, CCField y, CCField v, int k)
void pcgUpdateSum (Level &l0, CCField x, CCField r, CCField p, CCField Ap)
void meanSubtractMaxTo (Level &lv, CCField f, int k)
void maxabsTo (Level &lv, CCField a, int k)
void setDebugBreakdown (int which, int iter)
template<int ND>
void matvecGuessDots (Level &l0, CCField y, CCField v, CCField w, CCField r, int kvy, int kvr, int kwy)
void guessMatvec (Level &l0, CCField y, CCField v, const StarOverlay *star, int nStar, C3 nnStar)
double projectedGuess (Level &l0, CCField b, CCField x, CCField r, CCField av1, CCField av2, const StarOverlay *star, int nStar, C3 nnStar, bool fused, double *r0w)
void guessTraceSave (CCField x)
void guessTraceExit (Level &l0, CCField b, CCField x, double rref, double r0w, int it, int hist, const StarOverlay *star, int nStar, C3 nnStar)
double initialResidual (Level &l0, CCField b, CCField x, CCField r, CCField Ap, const StarOverlay *star, int nStar, C3 nnStar)
StartResidual startResidual (CCField b, CCField x, CCField r, CCField Ap, CCField z, const StarOverlay *star, int nStar, C3 nnStar, bool fused, bool resident)
void matvecDotPAp (Level &l0, CCField Ap, CCField p, bool fuse, const StarOverlay *star, int nStar, C3 nnStar)
void noteHealth (double rzOld, int it, bool trace, bool f32)
bool precondDotTo (bool f32, bool fuse, int e, int k, CCField z, CCField r, CCField pz)
double firstPrecondRz (Level &l0, bool f32, bool fuse, int e, CCField z, CCField r, CCField p)
void residentAlpha (int it)
void residentUpdate (Level &l0, CCField xx, CCField rr, CCField pp, CCField aa, bool fuse)
bool residentPacketExit (int &it, double rtol, double rref, double r0, bool trace, double &rn)
void residentPrecondRz (Level &l0, bool f32, bool fuse, int e, CCField z, CCField r, int it, bool health, bool trace)
void residentBetaAypx (CCField pp, CCField zz, std::size_t n)
int solvePCGResident (CCField b, CCField x, CCField r, CCField p, CCField z, CCField Ap, int maxit, double rtol, int pre, int post, int bottom, const StarOverlay *star, int nStar, C3 nnStar)
int solveFCG (CCField b, CCField x, CCField r, CCField p, CCField z, CCField zp, CCField Ap, int maxit, double rtol, int pre, int post, int bottom, const StarOverlay *star=nullptr, int nStar=0, C3 nnStar=C3{0, 0, 0})
double fcgPrecondRz (Level &l0, bool f32, bool fuse, CCField z, CCField r, double rn, CCField p)
void fcgNotePr (int it, double beta, double rznew, double rzcross, bool trace)
int solveFCGAttempt (CCField b, CCField x, CCField r, CCField p, CCField z, CCField zp, CCField Ap, int maxit, double rtol, int pre, int post, int bottom, const StarOverlay *star, int nStar, C3 nnStar)
void gpMatvec (Level &l0, CCField y, CCField q, const GpOverlayReal< MReal > &ov, int nOv, C3 nn)
void precondVcycleCopy (CCField zz, CCField rr)
void noteBicgExit (int exitCode, int it, int maxit, double r0n, double rnLast, double rtol)
int solveBiCGStab (CCField b, CCField x, CCField r, CCField rh, CCField p, CCField v, CCField t, CCField z, CCField z2, int maxit, double rtol, int pre, int post, int bottom, const GpOverlayReal< MReal > &ov, int nOv, C3 nn)
void precondVcycle (CCField zz, CCField rr)
void vcycle (int L, bool sym)
void vcycleImpl (int L, bool sym)
bool caSmooth (const Level &lv) const
bool fusedWrapReads () const
bool fusedWrapSmooth (const Level &lv) const
int effectiveVprec () const
bool fp32Mode () const
bool fp32Carriable () const
bool fp32Build (int L)
void allocFp64 (Level &v)
bool fp64Deferrable () const
int * fp32RangeFlag (int L)
bool fp32WeightsOk (int L) const
void fp32Reconfigure (bool wasCarriable, bool wasDeferrable)
void ensureFp64 ()
void releaseFp64 ()
void buildFp32Weights ()
bool fp32VcycleSolve ()
void setHealthTrace (bool on)
const std::vector< double > & healthLog () const
void precondVcycleFp32 (CCField zz, CCField rr, int e, int k, CCField p)
void smoothFp32 (Level &lv, int sweeps, bool reverse, bool skipFirst)
void vcycleFp32Impl (int L, bool sym)
void exitFp32 (Level &l0, CCField zz, CCField rr, double s, int k, CCField p)
void debugSetOverlaySolve (bool on)
void debugSetStencilHaloOff (bool on)
void setVcyclePrecision (int mode)
int vcyclePrecision () const
bool lastVcycleFp32 () const
int vcycleRestarts () const
int lastDiscardedIters () const
bool lastSolveConverged () const
void debugSetFp32Fault (int kind, int at)
bool restartArmed () const
void fp32DecoupledCounts (int L, long &n32, long &n64)
void checkFp32DecoupledSets ()
const char * fp32VcycleIneligible (bool krylov) const
bool lineRelaxOn (const Level &lv) const
bool linePeriodic (int s) const
void lineSmoothColor (Level &lv, int s, int color)
void lineSmoothColorFp32 (Level &lv, int s, int color)
void smooth (Level &lv, int sweeps, bool reverse)
bool agglomerateBottom () const
bool agglomerateAuto (long gx, long gy, long gz) const
bool bottomAdmissibleHere (C3 g) const
void printDepthCensus (int nLevels, bool more) const
std::vector< int > lineAxes () const
std::vector< int > lineSmoothedLevels () const
std::string lineAxisLabel (int L) const
const char * directBottomIneligible () const
int bottomLabelCode () const
const char * directBottomIneligibleAll () const
void requireDirectBottom () const
void buildBottomStore ()
Level & bottomLv ()
const Level & bottomLv () const
bool buildGlobalBottomLevel ()
long gbIndex (int gid) const
void buildGlobalBottomOp ()
void gatherGlobalBottomRhs ()
void scatterGlobalBottomX ()
void evalBottomComponents ()
template<class FR = float>
BottomKernel< FR > makeBottomKernel (bool precondOnly)
void noteBottomFlag (double v)
template<class FR>
int launchDirectFactor (const BottomDirect< FR > &D, int team, double tauPiv0, bool probe=true, bool teamAlgorithm=false, const CCExec &exec=CCExec())
template<class FR>
int launchDirectKernel (const BottomDirect< FR > &D, bool precondOnly, int team, bool noMean, CCField zOut=CCField(), CCField rIn=CCField(), bool probe=true, bool teamAlgorithm=false)
bool directPrefactorEligible () const
void prefactorBottom ()
long prefactorLaunches () const
bool joinPrefactor () const
 ~CutcellMG ()
void directBottomSolve ()
void buildAmg (Level &lv)
C3 amgBottomDims () const
AmgRows amgLocalRows (const Level &lv, C3 gb) const
void amgCellCouplings (C3 gc, C3 gb, int gid, const double(&bc)[6], AmgRows &o) const
void amgLabelComponents (const AmgRows &rows)
void printAmgBuildCensus (const AmgRows &rows) const
peclet::core::solver::HostCsrOp amgAssembleCsr (const AmgRows &rows) const
void graphAmgSolveBottom (Level &lv)
AmgRhsAnatomy amgRhsAnatomy (const std::vector< double > &b) const
void amgMeanZero (std::vector< double > &v) const
void amgReport (const AmgRhsAnatomy &a, const std::vector< double > &x, const std::vector< double > &r, int it, double r0, int dbg)
void pcgAmg (std::vector< double > &b, std::vector< double > &x)
void matvecOverlap (Level &l0, CCField y, CCField v)
void fill (Level &lv, CCField f)
void fill (Level &lv, VField f)
void fillLocal (Level &lv, CCField f)
template<class V>
void fillWrap (Level &lv, V f)
void fillOpenness (Level &lv)
void fillAxis (Level &lv, CCField f, int axis)
void axpy (CCField y, double a, CCField x)
void aypx (CCField y, double a, CCField x)
void scale (CCField y, double a)
void lin (CCField out, double a, CCField x, double b, CCField y)
void maskSolid (Level &lv, CCField f)
void addSeedNoise (Level &lv, CCField f, double amp)
CCField workVector (int slot, std::size_t n, const char *label)
bool eigenWarmReady () const
CCField eigenWarmMax () const
CCField eigenWarmMin () const
void setEigenWarm (CCField vmax, CCField vmin)
double lanczosTop (Level &l0, CCField v, bool ritz)
void eigSeedRhs (Level &l0, CCField srhs, CCConst seed)
void eigApplyT (Level &l0, CCField out, CCField in, CCField w)
double eigNormalize (Level &l0, CCField x)
double eigSeed (Level &l0, CCField x, CCField src)
void eigKeep (CCField &dst, CCField x, const char *label, std::size_t n)
double eigPowerMax (Level &l0, CCField v, CCField w, CCField z, int iters)
double eigPowerMin (Level &l0, CCField v, CCField w, CCField z, int iters, double shift)
void eigBracket (double shift, double mu, double &lmin, double &lmax)
void estimateEigenvalues (CCConst seed, double &lmin, double &lmax, int iters, int pre, int post, int bottom, EigenStart start=EigenStart::Cold, double bracket=1.0)
void debugSetEigenScale (double s)
int solveChebyshev (CCField b, CCField x, int maxit, double rtol, int pre, int post, int bottom, double a, double bnd, bool guard3=false, bool guardGrowth=false)
void setStopReference (double ref)
void setZeroInitialGuess (bool on)
void setProjectedGuess (CCField v1, int hist)
void clearProjectedGuess ()
long numEigenEstimates () const
bool chebyshevGuardTripped () const
double rhsNorm (CCField b, CCField scratch)
double residualNorm (CCField b, CCField x, CCField r, CCField Ap)
double cgTrueResidual (CCField b, CCField x, CCField r, CCField Ap, const StarOverlay *star=nullptr, int nStar=0, C3 nnStar=C3{0, 0, 0})
double dot (Level &lv, CCField a, CCField b)
void dotPair (Level &lv, CCField a, CCField b, CCField c, double &ab, double &ac)
double maxabs (Level &lv, CCField a)
double maxabsWithLocalSum (Level &lv, CCField a, Kokkos::View< double, PinnedHost > part, double &sum)
double maxabsLocal (Level &lv, CCField a)
void removeMeanHostCounted (Level &lv, CCField f, bool stopGuard)
void meanSumHostCounted (Level &lv, CCField f)
void meanSubtractHostCounted (Level &lv, CCField f, bool stopGuard)
void removeMeanDotTo (Level &lv, int k, CCField p)
void removeMean (Level &lv, CCField f, bool stopGuard=false)
bool globalMean (Level &lv, double sum, long cnt, double &mean)
bool distKrylovFusion () const
double pcgUpdateMeanMaxDist (Level &l0, CCField x, CCField r, CCField p, CCField Ap, double alpha)
double removeMeanDotDist (Level &lv)
double precondDotDist (CCField z, CCField r)
void setMeanRemovalScope (bool all)
double allreduceSeconds () const
long allreduceCount () const
bool lastSolveFailed ()
void resetAllreduceCounters ()
void setAgglomerationMode (int mode)
void setAgglomerationExtent (int cells)
int agglomerationExtent () const
void setTelescope (bool on)
void setCoarseGhost (bool on)
 Neumann coarse ghost on wall/inflow faces before the prolongation (see bcGhost_).
bool coarseGhost () const
void setAspectThreshold (double theta)
 Anisotropic-coarsening aspect threshold theta (see aspectTheta_).
void setLineRelaxation (bool on)
 A2.4 (doc/mg_depth_policy.md, WO-7): zebra line relaxation along the blocked strong axis on the triggered smoothed levels (A2.3); default on.
bool lineRelaxation () const
void setSymmetricVcycle (bool on)
 A3 (doc/mg_depth_policy.md Amendment A3, WO-S1): the symmetric pressure V-cycle – piecewise-constant prolongation P = c R^T of the average restriction on every transfer (FP64, FP32, the FP32 <- FP64 bottom interface, the telescope transition; no coarse-ghost refresh before it) and the palindromic smoothed bottom: the DEFAULT since WO-S3.
bool symmetricVcycle () const
double aspectThreshold () const
void setCommAvoiding (int mask)
 Communication-avoiding smoothing mask (kCaMomentum | kCaMg); only kCaMg is read here.
int commAvoiding () const
void setStrictPressure (bool on)
 Throw instead of reporting when the preconditioner returns a non-finite correction.
bool strictPressure () const
void setExactResidual (bool on)
 The exact double flux-form level-0 apply in the residual and the Krylov matvec.
bool exactResidual () const
void setOutflowCoefficient (bool on)
bool outflowCoefficient () const
int telescopeCount () const
int repartitionCount () const
C3 coarsestGlobal () const
bool telescope () const
void setTelescopeForceLevel (int L)
void setTelescopeMinExtent (int e)
void setRepartition (bool on)
 Repartition stages for a weighted level-0 decomposition (see repartition_); before initMpi.
bool repartition () const
int localLevels () const
int agglomerationMode () const
void setGraphAmgBottom (bool on)
void setBottomSolver (int m)
int bottomSolver () const
bool bottomConnected () const
int bottomComponents () const
void bottomForceForTest ()
const BottomPlanes & directPlanes () const
template<class FR>
BottomDirect< FR > directFactorForTest (int team, double tauPiv0=kBottomPivotTol, int *Tused=nullptr, bool teamAlgorithm=false)
template<class FR>
int directApplyForTest (const BottomDirect< FR > &D, CCField z, CCField r, int team, bool noMean=false, bool teamAlgorithm=false)
int directSolveForTest ()
int directSolveTeamForTest (int team, int *Tused=nullptr)
int directRestarts () const
void directPivotTolForTest (double t)
void directMarkStaleForTest ()

Static Public Member Functions

static C3 parityOg (const Level &lv)
static C3 mgChooseRatio (const double H[3], const bool canA[3], bool aniso, double theta)
static int lineAxisTrigger (int L, C3 g, C3 cf, const double hp[3], double theta, const int bc[6], double *aspect)
static bool canHalve (int d)
static bool touchesGlobalFace (const Level &lv, int f)
static C3 boxLo (int g, int m)
static C3 boxHi (C3 e, int g, int m)
static void allocLine (Level &v)
static bool bottomAdmissible (C3 g, int extent, bool anchored, int agglomMode, const int bc[6])
static std::string depthRequestLabel (int nLevels)
static const char * bottomLabelWhy (int code)
template<class K>
static int directTeam (const K &k, int team, bool probe, std::size_t scratch=0, int hostTeam=kBottomHostTeam)
static double amgDot (const std::vector< double > &a, const std::vector< double > &c, std::size_t n)
static double symTridiagTop (int m, const double *d, const double *e, double *y)

Public Attributes

Kokkos::View< double *, CCMem > ks_
Kokkos::View< long, CCMem > kcnt_
Kokkos::View< double *, PinnedHost > kpk_
Kokkos::View< double *, PinnedHost > kgp_
Kokkos::View< double, PinnedHost > krd_
Kokkos::View< double, PinnedHost > kcz_
ExitDot exitDot_
ExitDotDist exitDotDist_

Static Public Attributes

static constexpr int G = 1
static constexpr int kNSlots = 16
static constexpr int kGuessPacket = 6
static constexpr int kPacket = 4
static constexpr double kBrkPAp = 1.0
static constexpr double kBrkRz = 2.0
static constexpr bool kHostMemory
static constexpr double kChebSymShift = 1.15
static constexpr double kChebBracket = 1.15
static constexpr int kLanczosSteps = 10
static constexpr double kLanczosTol = 1e-3

Detailed Description

Definition at line 1094 of file mac_cutcell_mg.hpp.

Member Typedef Documentation

◆ PinnedHost

using peclet::flow::CutcellMG::PinnedHost = Kokkos::SharedHostPinnedSpace

Definition at line 2755 of file mac_cutcell_mg.hpp.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum : int
Enumerator
kPAp 
kRn 
kStop 
kBottomFlag 
kRz 
kRzNew 
kBeta 
kAlpha 
kMsum 
kGRref 
kG11 
kG12 
kG22 
kGb1 
kGb2 
kChebRz 

Definition at line 2725 of file mac_cutcell_mg.hpp.

◆ anonymous enum

anonymous enum : int
Enumerator
kVcycleAuto 
kVcycleFp64 
kVcycleFp32 

Definition at line 4256 of file mac_cutcell_mg.hpp.

◆ EigenStart

Enumerator
Cold 
ColdKeep 
Warm 

Definition at line 6563 of file mac_cutcell_mg.hpp.

◆ anonymous enum

anonymous enum : int
Enumerator
kBottomAuto 
kBottomDirect 
kBottomAlgebraic 

Definition at line 8026 of file mac_cutcell_mg.hpp.

Constructor & Destructor Documentation

◆ ~CutcellMG()

Definition at line 5724 of file mac_cutcell_mg.hpp.

Member Function Documentation

◆ parityOg()

C3 peclet::flow::CutcellMG::parityOg ( const Level & lv)
inlinestatic

Definition at line 1224 of file mac_cutcell_mg.hpp.

◆ mgChooseRatio()

C3 peclet::flow::CutcellMG::mgChooseRatio ( const double H[3],
const bool canA[3],
bool aniso,
double theta )
inlinestatic

Definition at line 1246 of file mac_cutcell_mg.hpp.

◆ lineAxisTrigger()

int peclet::flow::CutcellMG::lineAxisTrigger ( int L,
C3 g,
C3 cf,
const double hp[3],
double theta,
const int bc[6],
double * aspect )
inlinestatic

Definition at line 1284 of file mac_cutcell_mg.hpp.

◆ assignLineAxes()

Definition at line 1303 of file mac_cutcell_mg.hpp.

◆ setMetric()

void peclet::flow::CutcellMG::setMetric ( const double hp[3])
inline

Per-axis cell spacings h_a' = h_a / hRef of the physical domain (doc/anisotropic_metric.md §1.1).

Call BEFORE init/initMpi (trap 5): the level table is built there, long before setOpenness, and the aspect rule of §5 needs the metric at that point. The default (1, 1, 1) is the isotropic / cell-unit path, on which the rule is inert BY CONSTRUCTION (aniso_ is false, so mgChooseRatio returns today's decision verbatim).

Definition at line 1314 of file mac_cutcell_mg.hpp.

◆ levelRatios()

std::vector< C3 > peclet::flow::CutcellMG::levelRatios ( ) const
inline

The per-level coarsening ratio actually chosen (the level table of §5, gate §8.5).

Definition at line 1320 of file mac_cutcell_mg.hpp.

◆ init()

void peclet::flow::CutcellMG::init ( int nx,
int ny,
int nz,
int nLevels )
inline

Definition at line 1330 of file mac_cutcell_mg.hpp.

◆ canHalve()

bool peclet::flow::CutcellMG::canHalve ( int d)
inlinestatic

Definition at line 1737 of file mac_cutcell_mg.hpp.

◆ levelRatio()

C3 peclet::flow::CutcellMG::levelRatio ( C3 gs,
C3 cf,
const bool canA[3],
C3 & next ) const
inline

Definition at line 1740 of file mac_cutcell_mg.hpp.

◆ nLevels()

int peclet::flow::CutcellMG::nLevels ( ) const
inline

Definition at line 2089 of file mac_cutcell_mg.hpp.

◆ fp32Last()

int peclet::flow::CutcellMG::fp32Last ( ) const
inline

Definition at line 2093 of file mac_cutcell_mg.hpp.

◆ computeFp32Last()

Definition at line 2094 of file mac_cutcell_mg.hpp.

◆ level()

Definition at line 2105 of file mac_cutcell_mg.hpp.

◆ setBoundaryConditions()

void peclet::flow::CutcellMG::setBoundaryConditions ( const int bc[6])
inline

Definition at line 2110 of file mac_cutcell_mg.hpp.

◆ applyOutflowGhost()

void peclet::flow::CutcellMG::applyOutflowGhost ( const Level & lv,
CCField x,
int g = G )
inline

Definition at line 2126 of file mac_cutcell_mg.hpp.

◆ applyNeumannGhost() [1/2]

void peclet::flow::CutcellMG::applyNeumannGhost ( const Level & lv,
CCField x,
int g = G )
inline

Definition at line 2156 of file mac_cutcell_mg.hpp.

◆ applyNeumannGhost() [2/2]

void peclet::flow::CutcellMG::applyNeumannGhost ( const Level & lv,
VField x,
int g = G )
inline

Definition at line 2158 of file mac_cutcell_mg.hpp.

◆ applyNeumannGhostT()

template<class V>
void peclet::flow::CutcellMG::applyNeumannGhostT ( const Level & lv,
V x,
int g )
inline

Definition at line 2160 of file mac_cutcell_mg.hpp.

◆ touchesGlobalFace()

bool peclet::flow::CutcellMG::touchesGlobalFace ( const Level & lv,
int f )
inlinestatic

Definition at line 2173 of file mac_cutcell_mg.hpp.

◆ applyBoundaryOpenness()

void peclet::flow::CutcellMG::applyBoundaryOpenness ( Level & lv,
Level * fine = nullptr )
inline

Definition at line 2184 of file mac_cutcell_mg.hpp.

◆ applyBoundaryOpennessFrom()

void peclet::flow::CutcellMG::applyBoundaryOpennessFrom ( Level & lv,
const CCField * fo,
C3 fext,
int fg,
C3 fratio )
inline

Definition at line 2196 of file mac_cutcell_mg.hpp.

◆ saveOutflowPlanes()

Definition at line 2230 of file mac_cutcell_mg.hpp.

◆ noteFluidCells()

Definition at line 2249 of file mac_cutcell_mg.hpp.

◆ noteFluidCellsDevice()

Definition at line 2272 of file mac_cutcell_mg.hpp.

◆ hostAllFluid()

bool peclet::flow::CutcellMG::hostAllFluid ( const Level & lv) const
inline

Definition at line 2293 of file mac_cutcell_mg.hpp.

◆ level0Coefficient()

Definition at line 2301 of file mac_cutcell_mg.hpp.

◆ distributed()

bool peclet::flow::CutcellMG::distributed ( ) const
inline

Definition at line 2305 of file mac_cutcell_mg.hpp.

◆ setOpenness()

void peclet::flow::CutcellMG::setOpenness ( CCConst ox,
CCConst oy,
CCConst oz,
double idx2,
double idy2,
double idz2 )
inline

Definition at line 2309 of file mac_cutcell_mg.hpp.

◆ solvePCG()

int peclet::flow::CutcellMG::solvePCG ( CCField b,
CCField x,
CCField r,
CCField p,
CCField z,
CCField Ap,
int maxit,
double rtol,
int pre,
int post,
int bottom,
const StarOverlay * star = nullptr,
int nStar = 0,
C3 nnStar = C3{0, 0, 0} )
inline

Definition at line 2455 of file mac_cutcell_mg.hpp.

◆ solveWithRestart()

template<class Attempt>
int peclet::flow::CutcellMG::solveWithRestart ( CCField x,
int maxit,
Attempt && attempt )
inline

Definition at line 2471 of file mac_cutcell_mg.hpp.

◆ beginAttemptPrecision()

Definition at line 2509 of file mac_cutcell_mg.hpp.

◆ failNonFiniteZ()

int peclet::flow::CutcellMG::failNonFiniteZ ( const char * who,
Level & l0,
CCField x,
int maxit )
inline

Definition at line 2523 of file mac_cutcell_mg.hpp.

◆ commRank()

int peclet::flow::CutcellMG::commRank ( ) const
inline

Definition at line 2538 of file mac_cutcell_mg.hpp.

◆ guessResidual()

double peclet::flow::CutcellMG::guessResidual ( Level & l0,
CCField b,
CCField x,
CCField r,
CCField Ap,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 2548 of file mac_cutcell_mg.hpp.

◆ armStopTest()

double peclet::flow::CutcellMG::armStopTest ( double r0,
double rtol )
inline

Definition at line 2559 of file mac_cutcell_mg.hpp.

◆ matvecPAp()

double peclet::flow::CutcellMG::matvecPAp ( Level & l0,
CCField Ap,
CCField p,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 2566 of file mac_cutcell_mg.hpp.

◆ cgUpdate()

double peclet::flow::CutcellMG::cgUpdate ( Level & l0,
CCField x,
CCField r,
CCField p,
CCField Ap,
double alpha,
bool fuse )
inline

Definition at line 2575 of file mac_cutcell_mg.hpp.

◆ finalRemoveMean()

Definition at line 2584 of file mac_cutcell_mg.hpp.

◆ pApBreakdown()

bool peclet::flow::CutcellMG::pApBreakdown ( double pAp)
inline

Definition at line 2591 of file mac_cutcell_mg.hpp.

◆ cgConverged()

bool peclet::flow::CutcellMG::cgConverged ( int & it,
double rn,
double r0,
double rtol,
double rref,
bool trace )
inline

Definition at line 2601 of file mac_cutcell_mg.hpp.

◆ pcgPrecondRz()

double peclet::flow::CutcellMG::pcgPrecondRz ( Level & l0,
bool f32,
bool fuse,
CCField z,
CCField r,
double rn,
int k,
CCField p )
inline

Definition at line 2615 of file mac_cutcell_mg.hpp.

◆ solvePCGAttempt()

int peclet::flow::CutcellMG::solvePCGAttempt ( CCField b,
CCField x,
CCField r,
CCField p,
CCField z,
CCField Ap,
int maxit,
double rtol,
int pre,
int post,
int bottom,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 2639 of file mac_cutcell_mg.hpp.

◆ ensureScalars()

Definition at line 2760 of file mac_cutcell_mg.hpp.

◆ slot()

Kokkos::View< double, CCMem > peclet::flow::CutcellMG::slot ( int k) const
inline

Definition at line 2770 of file mac_cutcell_mg.hpp.

◆ readSlot()

double peclet::flow::CutcellMG::readSlot ( int k) const
inline

Definition at line 2773 of file mac_cutcell_mg.hpp.

◆ setSlot()

void peclet::flow::CutcellMG::setSlot ( int k,
double v )
inline

Definition at line 2778 of file mac_cutcell_mg.hpp.

◆ dotTo()

void peclet::flow::CutcellMG::dotTo ( Level & lv,
CCField a,
CCField b,
int k )
inline

Definition at line 2781 of file mac_cutcell_mg.hpp.

◆ copyDotTo()

void peclet::flow::CutcellMG::copyDotTo ( Level & lv,
CCField p,
CCField r,
CCField z,
int k )
inline

Definition at line 2811 of file mac_cutcell_mg.hpp.

◆ hostKrylovFusion()

Definition at line 2845 of file mac_cutcell_mg.hpp.

◆ matvecDotTo()

void peclet::flow::CutcellMG::matvecDotTo ( Level & l0,
CCField y,
CCField v,
int k )
inline

Definition at line 2852 of file mac_cutcell_mg.hpp.

◆ pcgUpdateSum()

Definition at line 2901 of file mac_cutcell_mg.hpp.

◆ meanSubtractMaxTo()

void peclet::flow::CutcellMG::meanSubtractMaxTo ( Level & lv,
CCField f,
int k )
inline

Definition at line 2925 of file mac_cutcell_mg.hpp.

◆ maxabsTo()

void peclet::flow::CutcellMG::maxabsTo ( Level & lv,
CCField a,
int k )
inline

Definition at line 2952 of file mac_cutcell_mg.hpp.

◆ setDebugBreakdown()

void peclet::flow::CutcellMG::setDebugBreakdown ( int which,
int iter )
inline

Definition at line 2984 of file mac_cutcell_mg.hpp.

◆ matvecGuessDots()

template<int ND>
void peclet::flow::CutcellMG::matvecGuessDots ( Level & l0,
CCField y,
CCField v,
CCField w,
CCField r,
int kvy,
int kvr,
int kwy )
inline

Definition at line 2993 of file mac_cutcell_mg.hpp.

◆ guessMatvec()

void peclet::flow::CutcellMG::guessMatvec ( Level & l0,
CCField y,
CCField v,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 3060 of file mac_cutcell_mg.hpp.

◆ projectedGuess()

double peclet::flow::CutcellMG::projectedGuess ( Level & l0,
CCField b,
CCField x,
CCField r,
CCField av1,
CCField av2,
const StarOverlay * star,
int nStar,
C3 nnStar,
bool fused,
double * r0w )
inline

Definition at line 3065 of file mac_cutcell_mg.hpp.

◆ guessTraceSave()

Definition at line 3163 of file mac_cutcell_mg.hpp.

◆ guessTraceExit()

void peclet::flow::CutcellMG::guessTraceExit ( Level & l0,
CCField b,
CCField x,
double rref,
double r0w,
int it,
int hist,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 3171 of file mac_cutcell_mg.hpp.

◆ initialResidual()

double peclet::flow::CutcellMG::initialResidual ( Level & l0,
CCField b,
CCField x,
CCField r,
CCField Ap,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 3217 of file mac_cutcell_mg.hpp.

◆ startResidual()

StartResidual peclet::flow::CutcellMG::startResidual ( CCField b,
CCField x,
CCField r,
CCField Ap,
CCField z,
const StarOverlay * star,
int nStar,
C3 nnStar,
bool fused,
bool resident )
inline

Definition at line 3244 of file mac_cutcell_mg.hpp.

◆ matvecDotPAp()

void peclet::flow::CutcellMG::matvecDotPAp ( Level & l0,
CCField Ap,
CCField p,
bool fuse,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 3265 of file mac_cutcell_mg.hpp.

◆ noteHealth()

void peclet::flow::CutcellMG::noteHealth ( double rzOld,
int it,
bool trace,
bool f32 )
inline

Definition at line 3278 of file mac_cutcell_mg.hpp.

◆ precondDotTo()

bool peclet::flow::CutcellMG::precondDotTo ( bool f32,
bool fuse,
int e,
int k,
CCField z,
CCField r,
CCField pz )
inline

Definition at line 3290 of file mac_cutcell_mg.hpp.

◆ firstPrecondRz()

double peclet::flow::CutcellMG::firstPrecondRz ( Level & l0,
bool f32,
bool fuse,
int e,
CCField z,
CCField r,
CCField p )
inline

Definition at line 3303 of file mac_cutcell_mg.hpp.

◆ residentAlpha()

Definition at line 3313 of file mac_cutcell_mg.hpp.

◆ residentUpdate()

void peclet::flow::CutcellMG::residentUpdate ( Level & l0,
CCField xx,
CCField rr,
CCField pp,
CCField aa,
bool fuse )
inline

Definition at line 3332 of file mac_cutcell_mg.hpp.

◆ residentPacketExit()

bool peclet::flow::CutcellMG::residentPacketExit ( int & it,
double rtol,
double rref,
double r0,
bool trace,
double & rn )
inline

Definition at line 3355 of file mac_cutcell_mg.hpp.

◆ residentPrecondRz()

void peclet::flow::CutcellMG::residentPrecondRz ( Level & l0,
bool f32,
bool fuse,
int e,
CCField z,
CCField r,
int it,
bool health,
bool trace )
inline

Definition at line 3376 of file mac_cutcell_mg.hpp.

◆ residentBetaAypx()

void peclet::flow::CutcellMG::residentBetaAypx ( CCField pp,
CCField zz,
std::size_t n )
inline

Definition at line 3388 of file mac_cutcell_mg.hpp.

◆ solvePCGResident()

int peclet::flow::CutcellMG::solvePCGResident ( CCField b,
CCField x,
CCField r,
CCField p,
CCField z,
CCField Ap,
int maxit,
double rtol,
int pre,
int post,
int bottom,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 3408 of file mac_cutcell_mg.hpp.

◆ solveFCG()

int peclet::flow::CutcellMG::solveFCG ( CCField b,
CCField x,
CCField r,
CCField p,
CCField z,
CCField zp,
CCField Ap,
int maxit,
double rtol,
int pre,
int post,
int bottom,
const StarOverlay * star = nullptr,
int nStar = 0,
C3 nnStar = C3{0, 0, 0} )
inline

Definition at line 3499 of file mac_cutcell_mg.hpp.

◆ fcgPrecondRz()

double peclet::flow::CutcellMG::fcgPrecondRz ( Level & l0,
bool f32,
bool fuse,
CCField z,
CCField r,
double rn,
CCField p )
inline

Definition at line 3510 of file mac_cutcell_mg.hpp.

◆ fcgNotePr()

void peclet::flow::CutcellMG::fcgNotePr ( int it,
double beta,
double rznew,
double rzcross,
bool trace )
inline

Definition at line 3532 of file mac_cutcell_mg.hpp.

◆ solveFCGAttempt()

int peclet::flow::CutcellMG::solveFCGAttempt ( CCField b,
CCField x,
CCField r,
CCField p,
CCField z,
CCField zp,
CCField Ap,
int maxit,
double rtol,
int pre,
int post,
int bottom,
const StarOverlay * star,
int nStar,
C3 nnStar )
inline

Definition at line 3540 of file mac_cutcell_mg.hpp.

◆ gpMatvec()

void peclet::flow::CutcellMG::gpMatvec ( Level & l0,
CCField y,
CCField q,
const GpOverlayReal< MReal > & ov,
int nOv,
C3 nn )
inline

Definition at line 3610 of file mac_cutcell_mg.hpp.

◆ precondVcycleCopy()

Definition at line 3635 of file mac_cutcell_mg.hpp.

◆ noteBicgExit()

void peclet::flow::CutcellMG::noteBicgExit ( int exitCode,
int it,
int maxit,
double r0n,
double rnLast,
double rtol )
inline

Definition at line 3647 of file mac_cutcell_mg.hpp.

◆ solveBiCGStab()

int peclet::flow::CutcellMG::solveBiCGStab ( CCField b,
CCField x,
CCField r,
CCField rh,
CCField p,
CCField v,
CCField t,
CCField z,
CCField z2,
int maxit,
double rtol,
int pre,
int post,
int bottom,
const GpOverlayReal< MReal > & ov,
int nOv,
C3 nn )
inline

Definition at line 3673 of file mac_cutcell_mg.hpp.

◆ precondVcycle()

Definition at line 4011 of file mac_cutcell_mg.hpp.

◆ vcycle()

void peclet::flow::CutcellMG::vcycle ( int L,
bool sym )
inline

Definition at line 4027 of file mac_cutcell_mg.hpp.

◆ vcycleImpl()

void peclet::flow::CutcellMG::vcycleImpl ( int L,
bool sym )
inline

Definition at line 4060 of file mac_cutcell_mg.hpp.

◆ caSmooth()

bool peclet::flow::CutcellMG::caSmooth ( const Level & lv) const
inline

Definition at line 4216 of file mac_cutcell_mg.hpp.

◆ boxLo()

C3 peclet::flow::CutcellMG::boxLo ( int g,
int m )
inlinestatic

Definition at line 4220 of file mac_cutcell_mg.hpp.

◆ boxHi()

C3 peclet::flow::CutcellMG::boxHi ( C3 e,
int g,
int m )
inlinestatic

Definition at line 4223 of file mac_cutcell_mg.hpp.

◆ fusedWrapReads()

Definition at line 4246 of file mac_cutcell_mg.hpp.

◆ fusedWrapSmooth()

bool peclet::flow::CutcellMG::fusedWrapSmooth ( const Level & lv) const
inline

Definition at line 4247 of file mac_cutcell_mg.hpp.

◆ effectiveVprec()

Definition at line 4262 of file mac_cutcell_mg.hpp.

◆ fp32Mode()

bool peclet::flow::CutcellMG::fp32Mode ( ) const
inline

Definition at line 4265 of file mac_cutcell_mg.hpp.

◆ fp32Carriable()

Definition at line 4270 of file mac_cutcell_mg.hpp.

◆ fp32Build()

bool peclet::flow::CutcellMG::fp32Build ( int L)
inline

Definition at line 4300 of file mac_cutcell_mg.hpp.

◆ allocFp64()

Definition at line 4343 of file mac_cutcell_mg.hpp.

◆ allocLine()

void peclet::flow::CutcellMG::allocLine ( Level & v)
inlinestatic

Definition at line 4357 of file mac_cutcell_mg.hpp.

◆ fp64Deferrable()

Definition at line 4368 of file mac_cutcell_mg.hpp.

◆ fp32RangeFlag()

Definition at line 4376 of file mac_cutcell_mg.hpp.

◆ fp32WeightsOk()

bool peclet::flow::CutcellMG::fp32WeightsOk ( int L) const
inline

Definition at line 4386 of file mac_cutcell_mg.hpp.

◆ fp32Reconfigure()

void peclet::flow::CutcellMG::fp32Reconfigure ( bool wasCarriable,
bool wasDeferrable )
inline

Definition at line 4415 of file mac_cutcell_mg.hpp.

◆ ensureFp64()

Definition at line 4425 of file mac_cutcell_mg.hpp.

◆ releaseFp64()

Definition at line 4452 of file mac_cutcell_mg.hpp.

◆ buildFp32Weights()

Definition at line 4476 of file mac_cutcell_mg.hpp.

◆ fp32VcycleSolve()

Definition at line 4498 of file mac_cutcell_mg.hpp.

◆ setHealthTrace()

Definition at line 4512 of file mac_cutcell_mg.hpp.

◆ healthLog()

const std::vector< double > & peclet::flow::CutcellMG::healthLog ( ) const
inline

Definition at line 4513 of file mac_cutcell_mg.hpp.

◆ precondVcycleFp32()

void peclet::flow::CutcellMG::precondVcycleFp32 ( CCField zz,
CCField rr,
int e,
int k,
CCField p )
inline

Definition at line 4519 of file mac_cutcell_mg.hpp.

◆ smoothFp32()

void peclet::flow::CutcellMG::smoothFp32 ( Level & lv,
int sweeps,
bool reverse,
bool skipFirst )
inline

Definition at line 4539 of file mac_cutcell_mg.hpp.

◆ vcycleFp32Impl()

void peclet::flow::CutcellMG::vcycleFp32Impl ( int L,
bool sym )
inline

Definition at line 4559 of file mac_cutcell_mg.hpp.

◆ exitFp32()

void peclet::flow::CutcellMG::exitFp32 ( Level & l0,
CCField zz,
CCField rr,
double s,
int k,
CCField p )
inline

Definition at line 4726 of file mac_cutcell_mg.hpp.

◆ debugSetOverlaySolve()

Definition at line 4819 of file mac_cutcell_mg.hpp.

◆ debugSetStencilHaloOff()

Definition at line 4822 of file mac_cutcell_mg.hpp.

◆ setVcyclePrecision()

Definition at line 4823 of file mac_cutcell_mg.hpp.

◆ vcyclePrecision()

Definition at line 4834 of file mac_cutcell_mg.hpp.

◆ lastVcycleFp32()

Definition at line 4836 of file mac_cutcell_mg.hpp.

◆ vcycleRestarts()

Definition at line 4839 of file mac_cutcell_mg.hpp.

◆ lastDiscardedIters()

Definition at line 4840 of file mac_cutcell_mg.hpp.

◆ lastSolveConverged()

Definition at line 4841 of file mac_cutcell_mg.hpp.

◆ debugSetFp32Fault()

void peclet::flow::CutcellMG::debugSetFp32Fault ( int kind,
int at )
inline

Definition at line 4845 of file mac_cutcell_mg.hpp.

◆ restartArmed()

Definition at line 4851 of file mac_cutcell_mg.hpp.

◆ fp32DecoupledCounts()

void peclet::flow::CutcellMG::fp32DecoupledCounts ( int L,
long & n32,
long & n64 )
inline

Definition at line 4854 of file mac_cutcell_mg.hpp.

◆ checkFp32DecoupledSets()

Definition at line 4877 of file mac_cutcell_mg.hpp.

◆ fp32VcycleIneligible()

const char * peclet::flow::CutcellMG::fp32VcycleIneligible ( bool krylov) const
inline

Definition at line 4891 of file mac_cutcell_mg.hpp.

◆ lineRelaxOn()

bool peclet::flow::CutcellMG::lineRelaxOn ( const Level & lv) const
inline

Definition at line 4951 of file mac_cutcell_mg.hpp.

◆ linePeriodic()

bool peclet::flow::CutcellMG::linePeriodic ( int s) const
inline

Definition at line 4955 of file mac_cutcell_mg.hpp.

◆ lineSmoothColor()

void peclet::flow::CutcellMG::lineSmoothColor ( Level & lv,
int s,
int color )
inline

Definition at line 4959 of file mac_cutcell_mg.hpp.

◆ lineSmoothColorFp32()

void peclet::flow::CutcellMG::lineSmoothColorFp32 ( Level & lv,
int s,
int color )
inline

Definition at line 4984 of file mac_cutcell_mg.hpp.

◆ smooth()

void peclet::flow::CutcellMG::smooth ( Level & lv,
int sweeps,
bool reverse )
inline

Definition at line 5003 of file mac_cutcell_mg.hpp.

◆ agglomerateBottom()

Definition at line 5109 of file mac_cutcell_mg.hpp.

◆ agglomerateAuto()

bool peclet::flow::CutcellMG::agglomerateAuto ( long gx,
long gy,
long gz ) const
inline

Definition at line 5126 of file mac_cutcell_mg.hpp.

◆ bottomAdmissible()

bool peclet::flow::CutcellMG::bottomAdmissible ( C3 g,
int extent,
bool anchored,
int agglomMode,
const int bc[6] )
inlinestatic

Definition at line 5151 of file mac_cutcell_mg.hpp.

Referenced by main().

◆ bottomAdmissibleHere()

Definition at line 5163 of file mac_cutcell_mg.hpp.

◆ depthRequestLabel()

std::string peclet::flow::CutcellMG::depthRequestLabel ( int nLevels)
inlinestatic

Definition at line 5166 of file mac_cutcell_mg.hpp.

◆ printDepthCensus()

void peclet::flow::CutcellMG::printDepthCensus ( int nLevels,
bool more ) const
inline

Definition at line 5173 of file mac_cutcell_mg.hpp.

◆ lineAxes()

std::vector< int > peclet::flow::CutcellMG::lineAxes ( ) const
inline

Definition at line 5207 of file mac_cutcell_mg.hpp.

◆ lineSmoothedLevels()

std::vector< int > peclet::flow::CutcellMG::lineSmoothedLevels ( ) const
inline

Definition at line 5214 of file mac_cutcell_mg.hpp.

◆ lineAxisLabel()

std::string peclet::flow::CutcellMG::lineAxisLabel ( int L) const
inline

Definition at line 5224 of file mac_cutcell_mg.hpp.

◆ directBottomIneligible()

const char * peclet::flow::CutcellMG::directBottomIneligible ( ) const
inline

Definition at line 5244 of file mac_cutcell_mg.hpp.

◆ bottomLabelCode()

Definition at line 5258 of file mac_cutcell_mg.hpp.

◆ bottomLabelWhy()

const char * peclet::flow::CutcellMG::bottomLabelWhy ( int code)
inlinestatic

Definition at line 5269 of file mac_cutcell_mg.hpp.

◆ directBottomIneligibleAll()

Definition at line 5288 of file mac_cutcell_mg.hpp.

◆ requireDirectBottom()

Definition at line 5304 of file mac_cutcell_mg.hpp.

◆ buildBottomStore()

Definition at line 5343 of file mac_cutcell_mg.hpp.

◆ bottomLv() [1/2]

Definition at line 5378 of file mac_cutcell_mg.hpp.

◆ bottomLv() [2/2]

const Level & peclet::flow::CutcellMG::bottomLv ( ) const
inline

Definition at line 5379 of file mac_cutcell_mg.hpp.

◆ buildGlobalBottomLevel()

Definition at line 5390 of file mac_cutcell_mg.hpp.

◆ gbIndex()

long peclet::flow::CutcellMG::gbIndex ( int gid) const
inline

Definition at line 5447 of file mac_cutcell_mg.hpp.

◆ buildGlobalBottomOp()

Definition at line 5456 of file mac_cutcell_mg.hpp.

◆ gatherGlobalBottomRhs()

Definition at line 5509 of file mac_cutcell_mg.hpp.

◆ scatterGlobalBottomX()

Definition at line 5531 of file mac_cutcell_mg.hpp.

◆ evalBottomComponents()

Definition at line 5551 of file mac_cutcell_mg.hpp.

◆ makeBottomKernel()

template<class FR = float>
BottomKernel< FR > peclet::flow::CutcellMG::makeBottomKernel ( bool precondOnly)
inline

Definition at line 5584 of file mac_cutcell_mg.hpp.

◆ noteBottomFlag()

void peclet::flow::CutcellMG::noteBottomFlag ( double v)
inline

Definition at line 5614 of file mac_cutcell_mg.hpp.

◆ directTeam()

template<class K>
int peclet::flow::CutcellMG::directTeam ( const K & k,
int team,
bool probe,
std::size_t scratch = 0,
int hostTeam = kBottomHostTeam )
inlinestatic

Definition at line 5626 of file mac_cutcell_mg.hpp.

◆ launchDirectFactor()

template<class FR>
int peclet::flow::CutcellMG::launchDirectFactor ( const BottomDirect< FR > & D,
int team,
double tauPiv0,
bool probe = true,
bool teamAlgorithm = false,
const CCExec & exec = CCExec() )
inline

Definition at line 5642 of file mac_cutcell_mg.hpp.

◆ launchDirectKernel()

template<class FR>
int peclet::flow::CutcellMG::launchDirectKernel ( const BottomDirect< FR > & D,
bool precondOnly,
int team,
bool noMean,
CCField zOut = CCField(),
CCField rIn = CCField(),
bool probe = true,
bool teamAlgorithm = false )
inline

Definition at line 5670 of file mac_cutcell_mg.hpp.

◆ directPrefactorEligible()

Definition at line 5693 of file mac_cutcell_mg.hpp.

◆ prefactorBottom()

Definition at line 5701 of file mac_cutcell_mg.hpp.

◆ prefactorLaunches()

Definition at line 5716 of file mac_cutcell_mg.hpp.

◆ joinPrefactor()

Definition at line 5717 of file mac_cutcell_mg.hpp.

◆ directBottomSolve()

Definition at line 5728 of file mac_cutcell_mg.hpp.

◆ buildAmg()

Definition at line 5769 of file mac_cutcell_mg.hpp.

◆ amgBottomDims()

Definition at line 5798 of file mac_cutcell_mg.hpp.

◆ amgLocalRows()

AmgRows peclet::flow::CutcellMG::amgLocalRows ( const Level & lv,
C3 gb ) const
inline

Definition at line 5809 of file mac_cutcell_mg.hpp.

◆ amgCellCouplings()

void peclet::flow::CutcellMG::amgCellCouplings ( C3 gc,
C3 gb,
int gid,
const double(&) bc[6],
AmgRows & o ) const
inline

Definition at line 5842 of file mac_cutcell_mg.hpp.

◆ amgLabelComponents()

Definition at line 5884 of file mac_cutcell_mg.hpp.

◆ printAmgBuildCensus()

void peclet::flow::CutcellMG::printAmgBuildCensus ( const AmgRows & rows) const
inline

Definition at line 5915 of file mac_cutcell_mg.hpp.

◆ amgAssembleCsr()

peclet::core::solver::HostCsrOp peclet::flow::CutcellMG::amgAssembleCsr ( const AmgRows & rows) const
inline

Definition at line 5963 of file mac_cutcell_mg.hpp.

◆ graphAmgSolveBottom()

Definition at line 6002 of file mac_cutcell_mg.hpp.

◆ amgRhsAnatomy()

AmgRhsAnatomy peclet::flow::CutcellMG::amgRhsAnatomy ( const std::vector< double > & b) const
inline

Definition at line 6072 of file mac_cutcell_mg.hpp.

◆ amgMeanZero()

void peclet::flow::CutcellMG::amgMeanZero ( std::vector< double > & v) const
inline

Definition at line 6101 of file mac_cutcell_mg.hpp.

◆ amgDot()

double peclet::flow::CutcellMG::amgDot ( const std::vector< double > & a,
const std::vector< double > & c,
std::size_t n )
inlinestatic

Definition at line 6128 of file mac_cutcell_mg.hpp.

◆ amgReport()

void peclet::flow::CutcellMG::amgReport ( const AmgRhsAnatomy & a,
const std::vector< double > & x,
const std::vector< double > & r,
int it,
double r0,
int dbg )
inline

Definition at line 6137 of file mac_cutcell_mg.hpp.

◆ pcgAmg()

void peclet::flow::CutcellMG::pcgAmg ( std::vector< double > & b,
std::vector< double > & x )
inline

Definition at line 6163 of file mac_cutcell_mg.hpp.

◆ matvecOverlap()

Definition at line 6235 of file mac_cutcell_mg.hpp.

◆ fill() [1/2]

void peclet::flow::CutcellMG::fill ( Level & lv,
CCField f )
inline

Definition at line 6284 of file mac_cutcell_mg.hpp.

◆ fill() [2/2]

void peclet::flow::CutcellMG::fill ( Level & lv,
VField f )
inline

Definition at line 6309 of file mac_cutcell_mg.hpp.

◆ fillLocal()

Definition at line 6295 of file mac_cutcell_mg.hpp.

◆ fillWrap()

template<class V>
void peclet::flow::CutcellMG::fillWrap ( Level & lv,
V f )
inline

Definition at line 6327 of file mac_cutcell_mg.hpp.

◆ fillOpenness()

Definition at line 6419 of file mac_cutcell_mg.hpp.

◆ fillAxis()

void peclet::flow::CutcellMG::fillAxis ( Level & lv,
CCField f,
int axis )
inline

Definition at line 6424 of file mac_cutcell_mg.hpp.

◆ axpy()

void peclet::flow::CutcellMG::axpy ( CCField y,
double a,
CCField x )
inline

Definition at line 6474 of file mac_cutcell_mg.hpp.

◆ aypx()

void peclet::flow::CutcellMG::aypx ( CCField y,
double a,
CCField x )
inline

Definition at line 6482 of file mac_cutcell_mg.hpp.

◆ scale()

void peclet::flow::CutcellMG::scale ( CCField y,
double a )
inline

Definition at line 6490 of file mac_cutcell_mg.hpp.

◆ lin()

void peclet::flow::CutcellMG::lin ( CCField out,
double a,
CCField x,
double b,
CCField y )
inline

Definition at line 6498 of file mac_cutcell_mg.hpp.

◆ maskSolid()

Definition at line 6507 of file mac_cutcell_mg.hpp.

◆ addSeedNoise()

void peclet::flow::CutcellMG::addSeedNoise ( Level & lv,
CCField f,
double amp )
inline

Definition at line 6522 of file mac_cutcell_mg.hpp.

◆ workVector()

CCField peclet::flow::CutcellMG::workVector ( int slot,
std::size_t n,
const char * label )
inline

Definition at line 6548 of file mac_cutcell_mg.hpp.

◆ eigenWarmReady()

Definition at line 6573 of file mac_cutcell_mg.hpp.

◆ eigenWarmMax()

Definition at line 6579 of file mac_cutcell_mg.hpp.

◆ eigenWarmMin()

Definition at line 6580 of file mac_cutcell_mg.hpp.

◆ setEigenWarm()

Definition at line 6581 of file mac_cutcell_mg.hpp.

◆ lanczosTop()

double peclet::flow::CutcellMG::lanczosTop ( Level & l0,
CCField v,
bool ritz )
inline

Definition at line 6600 of file mac_cutcell_mg.hpp.

◆ symTridiagTop()

double peclet::flow::CutcellMG::symTridiagTop ( int m,
const double * d,
const double * e,
double * y )
inlinestatic

Definition at line 6680 of file mac_cutcell_mg.hpp.

◆ eigSeedRhs()

void peclet::flow::CutcellMG::eigSeedRhs ( Level & l0,
CCField srhs,
CCConst seed )
inline

Definition at line 6733 of file mac_cutcell_mg.hpp.

◆ eigApplyT()

void peclet::flow::CutcellMG::eigApplyT ( Level & l0,
CCField out,
CCField in,
CCField w )
inline

Definition at line 6742 of file mac_cutcell_mg.hpp.

◆ eigNormalize()

Definition at line 6749 of file mac_cutcell_mg.hpp.

◆ eigSeed()

double peclet::flow::CutcellMG::eigSeed ( Level & l0,
CCField x,
CCField src )
inline

Definition at line 6756 of file mac_cutcell_mg.hpp.

◆ eigKeep()

void peclet::flow::CutcellMG::eigKeep ( CCField & dst,
CCField x,
const char * label,
std::size_t n )
inline

Definition at line 6763 of file mac_cutcell_mg.hpp.

◆ eigPowerMax()

double peclet::flow::CutcellMG::eigPowerMax ( Level & l0,
CCField v,
CCField w,
CCField z,
int iters )
inline

Definition at line 6770 of file mac_cutcell_mg.hpp.

◆ eigPowerMin()

double peclet::flow::CutcellMG::eigPowerMin ( Level & l0,
CCField v,
CCField w,
CCField z,
int iters,
double shift )
inline

Definition at line 6793 of file mac_cutcell_mg.hpp.

◆ eigBracket()

void peclet::flow::CutcellMG::eigBracket ( double shift,
double mu,
double & lmin,
double & lmax )
inline

Definition at line 6806 of file mac_cutcell_mg.hpp.

◆ estimateEigenvalues()

void peclet::flow::CutcellMG::estimateEigenvalues ( CCConst seed,
double & lmin,
double & lmax,
int iters,
int pre,
int post,
int bottom,
EigenStart start = EigenStart::Cold,
double bracket = 1.0 )
inline

Definition at line 6824 of file mac_cutcell_mg.hpp.

◆ debugSetEigenScale()

Definition at line 6875 of file mac_cutcell_mg.hpp.

◆ solveChebyshev()

int peclet::flow::CutcellMG::solveChebyshev ( CCField b,
CCField x,
int maxit,
double rtol,
int pre,
int post,
int bottom,
double a,
double bnd,
bool guard3 = false,
bool guardGrowth = false )
inline

Definition at line 6896 of file mac_cutcell_mg.hpp.

◆ setStopReference()

void peclet::flow::CutcellMG::setStopReference ( double ref)
inline

Definition at line 6995 of file mac_cutcell_mg.hpp.

◆ setZeroInitialGuess()

Definition at line 6998 of file mac_cutcell_mg.hpp.

◆ setProjectedGuess()

void peclet::flow::CutcellMG::setProjectedGuess ( CCField v1,
int hist )
inline

Definition at line 7005 of file mac_cutcell_mg.hpp.

◆ clearProjectedGuess()

Definition at line 7009 of file mac_cutcell_mg.hpp.

◆ numEigenEstimates()

Definition at line 7015 of file mac_cutcell_mg.hpp.

◆ chebyshevGuardTripped()

Definition at line 7017 of file mac_cutcell_mg.hpp.

◆ rhsNorm()

double peclet::flow::CutcellMG::rhsNorm ( CCField b,
CCField scratch )
inline

Definition at line 7019 of file mac_cutcell_mg.hpp.

◆ residualNorm()

Definition at line 7026 of file mac_cutcell_mg.hpp.

◆ cgTrueResidual()

double peclet::flow::CutcellMG::cgTrueResidual ( CCField b,
CCField x,
CCField r,
CCField Ap,
const StarOverlay * star = nullptr,
int nStar = 0,
C3 nnStar = C3{0, 0, 0} )
inline

Definition at line 7042 of file mac_cutcell_mg.hpp.

◆ dot()

double peclet::flow::CutcellMG::dot ( Level & lv,
CCField a,
CCField b )
inline

Definition at line 7057 of file mac_cutcell_mg.hpp.

◆ dotPair()

void peclet::flow::CutcellMG::dotPair ( Level & lv,
CCField a,
CCField b,
CCField c,
double & ab,
double & ac )
inline

Definition at line 7089 of file mac_cutcell_mg.hpp.

◆ maxabs()

double peclet::flow::CutcellMG::maxabs ( Level & lv,
CCField a )
inline

Definition at line 7114 of file mac_cutcell_mg.hpp.

◆ maxabsWithLocalSum()

double peclet::flow::CutcellMG::maxabsWithLocalSum ( Level & lv,
CCField a,
Kokkos::View< double, PinnedHost > part,
double & sum )
inline

Definition at line 7125 of file mac_cutcell_mg.hpp.

◆ maxabsLocal()

Definition at line 7164 of file mac_cutcell_mg.hpp.

◆ removeMeanHostCounted()

void peclet::flow::CutcellMG::removeMeanHostCounted ( Level & lv,
CCField f,
bool stopGuard )
inline

Definition at line 7198 of file mac_cutcell_mg.hpp.

◆ meanSumHostCounted()

Definition at line 7203 of file mac_cutcell_mg.hpp.

◆ meanSubtractHostCounted()

void peclet::flow::CutcellMG::meanSubtractHostCounted ( Level & lv,
CCField f,
bool stopGuard )
inline

Definition at line 7228 of file mac_cutcell_mg.hpp.

◆ removeMeanDotTo()

void peclet::flow::CutcellMG::removeMeanDotTo ( Level & lv,
int k,
CCField p )
inline

Definition at line 7253 of file mac_cutcell_mg.hpp.

◆ removeMean()

void peclet::flow::CutcellMG::removeMean ( Level & lv,
CCField f,
bool stopGuard = false )
inline

Definition at line 7284 of file mac_cutcell_mg.hpp.

◆ globalMean()

bool peclet::flow::CutcellMG::globalMean ( Level & lv,
double sum,
long cnt,
double & mean )
inline

Definition at line 7354 of file mac_cutcell_mg.hpp.

◆ distKrylovFusion()

Definition at line 7377 of file mac_cutcell_mg.hpp.

◆ pcgUpdateMeanMaxDist()

double peclet::flow::CutcellMG::pcgUpdateMeanMaxDist ( Level & l0,
CCField x,
CCField r,
CCField p,
CCField Ap,
double alpha )
inline

Definition at line 7388 of file mac_cutcell_mg.hpp.

◆ removeMeanDotDist()

Definition at line 7435 of file mac_cutcell_mg.hpp.

◆ precondDotDist()

Definition at line 7475 of file mac_cutcell_mg.hpp.

◆ setMeanRemovalScope()

Definition at line 7499 of file mac_cutcell_mg.hpp.

◆ allreduceSeconds()

Definition at line 7508 of file mac_cutcell_mg.hpp.

◆ allreduceCount()

Definition at line 7509 of file mac_cutcell_mg.hpp.

◆ lastSolveFailed()

Definition at line 7515 of file mac_cutcell_mg.hpp.

◆ resetAllreduceCounters()

Definition at line 7520 of file mac_cutcell_mg.hpp.

◆ setAgglomerationMode()

Definition at line 7775 of file mac_cutcell_mg.hpp.

◆ setAgglomerationExtent()

Definition at line 7776 of file mac_cutcell_mg.hpp.

◆ agglomerationExtent()

Definition at line 7777 of file mac_cutcell_mg.hpp.

◆ setTelescope()

void peclet::flow::CutcellMG::setTelescope ( bool on)
inline

Definition at line 7778 of file mac_cutcell_mg.hpp.

◆ setCoarseGhost()

Neumann coarse ghost on wall/inflow faces before the prolongation (see bcGhost_).

Definition at line 7780 of file mac_cutcell_mg.hpp.

◆ coarseGhost()

bool peclet::flow::CutcellMG::coarseGhost ( ) const
inline

Definition at line 7781 of file mac_cutcell_mg.hpp.

◆ setAspectThreshold()

void peclet::flow::CutcellMG::setAspectThreshold ( double theta)
inline

Anisotropic-coarsening aspect threshold theta (see aspectTheta_).

Definition at line 7783 of file mac_cutcell_mg.hpp.

◆ setLineRelaxation()

A2.4 (doc/mg_depth_policy.md, WO-7): zebra line relaxation along the blocked strong axis on the triggered smoothed levels (A2.3); default on.

Off is the point RB-GS smoother bit for bit. Read at smoothing time; a change invalidates the kept Chebyshev eigenvalue vectors.

Definition at line 7787 of file mac_cutcell_mg.hpp.

◆ lineRelaxation()

Definition at line 7792 of file mac_cutcell_mg.hpp.

◆ setSymmetricVcycle()

A3 (doc/mg_depth_policy.md Amendment A3, WO-S1): the symmetric pressure V-cycle – piecewise-constant prolongation P = c R^T of the average restriction on every transfer (FP64, FP32, the FP32 <- FP64 bottom interface, the telescope transition; no coarse-ghost refresh before it) and the palindromic smoothed bottom: the DEFAULT since WO-S3.

Off is the trilinear prolongation and the forward bottom bit for bit. Read at V-cycle time; a change invalidates the kept Chebyshev eigenvalue vectors.

Definition at line 7799 of file mac_cutcell_mg.hpp.

◆ symmetricVcycle()

Definition at line 7804 of file mac_cutcell_mg.hpp.

◆ aspectThreshold()

Definition at line 7805 of file mac_cutcell_mg.hpp.

◆ setCommAvoiding()

Communication-avoiding smoothing mask (kCaMomentum | kCaMg); only kCaMg is read here.

Definition at line 7807 of file mac_cutcell_mg.hpp.

◆ commAvoiding()

Definition at line 7808 of file mac_cutcell_mg.hpp.

◆ setStrictPressure()

Throw instead of reporting when the preconditioner returns a non-finite correction.

Definition at line 7810 of file mac_cutcell_mg.hpp.

◆ strictPressure()

Definition at line 7811 of file mac_cutcell_mg.hpp.

◆ setExactResidual()

The exact double flux-form level-0 apply in the residual and the Krylov matvec.

Definition at line 7813 of file mac_cutcell_mg.hpp.

◆ exactResidual()

Definition at line 7818 of file mac_cutcell_mg.hpp.

◆ setOutflowCoefficient()

Definition at line 7822 of file mac_cutcell_mg.hpp.

◆ outflowCoefficient()

Definition at line 7823 of file mac_cutcell_mg.hpp.

◆ telescopeCount()

Definition at line 7827 of file mac_cutcell_mg.hpp.

◆ repartitionCount()

Definition at line 7836 of file mac_cutcell_mg.hpp.

◆ coarsestGlobal()

Definition at line 7844 of file mac_cutcell_mg.hpp.

◆ telescope()

bool peclet::flow::CutcellMG::telescope ( ) const
inline

Definition at line 8008 of file mac_cutcell_mg.hpp.

◆ setTelescopeForceLevel()

Definition at line 8009 of file mac_cutcell_mg.hpp.

◆ setTelescopeMinExtent()

Definition at line 8010 of file mac_cutcell_mg.hpp.

◆ setRepartition()

Repartition stages for a weighted level-0 decomposition (see repartition_); before initMpi.

Definition at line 8012 of file mac_cutcell_mg.hpp.

◆ repartition()

bool peclet::flow::CutcellMG::repartition ( ) const
inline

Definition at line 8013 of file mac_cutcell_mg.hpp.

◆ localLevels()

Definition at line 8016 of file mac_cutcell_mg.hpp.

◆ agglomerationMode()

Definition at line 8017 of file mac_cutcell_mg.hpp.

◆ setGraphAmgBottom()

Definition at line 8018 of file mac_cutcell_mg.hpp.

◆ setBottomSolver()

Definition at line 8027 of file mac_cutcell_mg.hpp.

◆ bottomSolver()

Definition at line 8028 of file mac_cutcell_mg.hpp.

◆ bottomConnected()

Definition at line 8032 of file mac_cutcell_mg.hpp.

◆ bottomComponents()

Definition at line 8033 of file mac_cutcell_mg.hpp.

◆ bottomForceForTest()

Definition at line 8034 of file mac_cutcell_mg.hpp.

◆ directPlanes()

const BottomPlanes & peclet::flow::CutcellMG::directPlanes ( ) const
inline

Definition at line 8048 of file mac_cutcell_mg.hpp.

◆ directFactorForTest()

template<class FR>
BottomDirect< FR > peclet::flow::CutcellMG::directFactorForTest ( int team,
double tauPiv0 = kBottomPivotTol,
int * Tused = nullptr,
bool teamAlgorithm = false )
inline

Definition at line 8050 of file mac_cutcell_mg.hpp.

◆ directApplyForTest()

template<class FR>
int peclet::flow::CutcellMG::directApplyForTest ( const BottomDirect< FR > & D,
CCField z,
CCField r,
int team,
bool noMean = false,
bool teamAlgorithm = false )
inline

Definition at line 8061 of file mac_cutcell_mg.hpp.

◆ directSolveForTest()

Definition at line 8067 of file mac_cutcell_mg.hpp.

◆ directSolveTeamForTest()

int peclet::flow::CutcellMG::directSolveTeamForTest ( int team,
int * Tused = nullptr )
inline

Definition at line 8076 of file mac_cutcell_mg.hpp.

◆ directRestarts()

Definition at line 8091 of file mac_cutcell_mg.hpp.

◆ directPivotTolForTest()

Definition at line 8096 of file mac_cutcell_mg.hpp.

◆ directMarkStaleForTest()

Definition at line 8102 of file mac_cutcell_mg.hpp.

Member Data Documentation

◆ G

int peclet::flow::CutcellMG::G = 1
staticconstexpr

Definition at line 1219 of file mac_cutcell_mg.hpp.

◆ kNSlots

int peclet::flow::CutcellMG::kNSlots = 16
staticconstexpr

Definition at line 2746 of file mac_cutcell_mg.hpp.

◆ kGuessPacket

int peclet::flow::CutcellMG::kGuessPacket = 6
staticconstexpr

Definition at line 2747 of file mac_cutcell_mg.hpp.

◆ kPacket

int peclet::flow::CutcellMG::kPacket = 4
staticconstexpr

Definition at line 2748 of file mac_cutcell_mg.hpp.

◆ kBrkPAp

double peclet::flow::CutcellMG::kBrkPAp = 1.0
staticconstexpr

Definition at line 2749 of file mac_cutcell_mg.hpp.

◆ kBrkRz

double peclet::flow::CutcellMG::kBrkRz = 2.0
static

Definition at line 2749 of file mac_cutcell_mg.hpp.

◆ ks_

Kokkos::View<double*, CCMem> peclet::flow::CutcellMG::ks_

Definition at line 2750 of file mac_cutcell_mg.hpp.

◆ kcnt_

Kokkos::View<long, CCMem> peclet::flow::CutcellMG::kcnt_

Definition at line 2751 of file mac_cutcell_mg.hpp.

◆ kpk_

Kokkos::View<double*, PinnedHost> peclet::flow::CutcellMG::kpk_

Definition at line 2756 of file mac_cutcell_mg.hpp.

◆ kgp_

Kokkos::View<double*, PinnedHost> peclet::flow::CutcellMG::kgp_

Definition at line 2757 of file mac_cutcell_mg.hpp.

◆ krd_

Definition at line 2758 of file mac_cutcell_mg.hpp.

◆ kcz_

Definition at line 2759 of file mac_cutcell_mg.hpp.

◆ exitDot_

◆ kHostMemory

Initial value:
=
std::is_same_v<typename CCExec::memory_space, Kokkos::HostSpace>

Definition at line 5237 of file mac_cutcell_mg.hpp.

◆ kChebSymShift

double peclet::flow::CutcellMG::kChebSymShift = 1.15
staticconstexpr

Definition at line 6566 of file mac_cutcell_mg.hpp.

◆ kChebBracket

double peclet::flow::CutcellMG::kChebBracket = 1.15
staticconstexpr

Definition at line 6571 of file mac_cutcell_mg.hpp.

◆ kLanczosSteps

int peclet::flow::CutcellMG::kLanczosSteps = 10
staticconstexpr

Definition at line 6598 of file mac_cutcell_mg.hpp.

◆ kLanczosTol

double peclet::flow::CutcellMG::kLanczosTol = 1e-3
staticconstexpr

Definition at line 6599 of file mac_cutcell_mg.hpp.

◆ exitDotDist_


The documentation for this class was generated from the following file: