flow 1.4.0
Kokkos cut-cell IBM incompressible Navier-Stokes solver + pnm pore extraction
Loading...
Searching...
No Matches
peclet::flow::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 fillLocal (Level &lv, CCField f)
void fill (Level &lv, VField 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()

peclet::flow::CutcellMG::~CutcellMG ( )
inline

Definition at line 5724 of file mac_cutcell_mg.hpp.

References joinPrefactor().

Member Function Documentation

◆ parityOg()

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

◆ mgChooseRatio()

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

◆ 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.

References canHalve().

Referenced by assignLineAxes().

◆ assignLineAxes()

void peclet::flow::CutcellMG::assignLineAxes ( )
inline

Definition at line 1303 of file mac_cutcell_mg.hpp.

References lineAxisTrigger().

Referenced by init().

◆ 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.

Referenced by main().

◆ 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.

Referenced by main().

◆ init()

◆ canHalve()

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

Definition at line 1737 of file mac_cutcell_mg.hpp.

Referenced by init(), and lineAxisTrigger().

◆ 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.

References mgChooseRatio(), peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

Referenced by init().

◆ nLevels()

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

Definition at line 2089 of file mac_cutcell_mg.hpp.

Referenced by depthRequestLabel(), init(), main(), mgChecks(), and printDepthCensus().

◆ fp32Last()

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

Definition at line 2093 of file mac_cutcell_mg.hpp.

◆ computeFp32Last()

void peclet::flow::CutcellMG::computeFp32Last ( )
inline

Definition at line 2094 of file mac_cutcell_mg.hpp.

Referenced by init().

◆ level()

Level & peclet::flow::CutcellMG::level ( int L)
inline

Definition at line 2105 of file mac_cutcell_mg.hpp.

Referenced by main(), mgChecks(), mgSolve(), setupAndSolve(), solveSteps(), and solveSteps().

◆ setBoundaryConditions()

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

Definition at line 2110 of file mac_cutcell_mg.hpp.

Referenced by configure(), main(), peclet_flow_fp32_problems::setUp(), and solveSteps().

◆ applyOutflowGhost()

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

◆ 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.

References applyNeumannGhostT(), and G.

Referenced by vcycleFp32Impl(), and vcycleImpl().

◆ 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.

References applyNeumannGhostT(), and G.

◆ applyNeumannGhostT()

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

◆ touchesGlobalFace()

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

◆ applyBoundaryOpenness()

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

Definition at line 2184 of file mac_cutcell_mg.hpp.

References applyBoundaryOpennessFrom().

Referenced by buildGlobalBottomOp(), and setOpenness().

◆ applyBoundaryOpennessFrom()

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

◆ saveOutflowPlanes()

void peclet::flow::CutcellMG::saveOutflowPlanes ( Level & lv)
inline

Definition at line 2230 of file mac_cutcell_mg.hpp.

References peclet::flow::mgSaveFacePlane(), and touchesGlobalFace().

Referenced by setOpenness().

◆ noteFluidCells()

void peclet::flow::CutcellMG::noteFluidCells ( Level & lv)
inline

Definition at line 2249 of file mac_cutcell_mg.hpp.

References peclet::flow::ccReduce3(), and kHostMemory.

Referenced by ensureFp64(), and setOpenness().

◆ noteFluidCellsDevice()

void peclet::flow::CutcellMG::noteFluidCellsDevice ( Level & lv)
inline

Definition at line 2272 of file mac_cutcell_mg.hpp.

References peclet::flow::ccReduce3(), and kHostMemory.

Referenced by ensureFp64(), and setOpenness().

◆ hostAllFluid()

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

◆ level0Coefficient()

CCField peclet::flow::CutcellMG::level0Coefficient ( int a) const
inline

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()

◆ 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.

Referenced by main(), mgSolve(), setupAndSolve(), setupAndSolve(), solveSteps(), and solveSteps().

◆ solveWithRestart()

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

◆ beginAttemptPrecision()

bool peclet::flow::CutcellMG::beginAttemptPrecision ( int & maxit)
inline

Definition at line 2509 of file mac_cutcell_mg.hpp.

References fp32VcycleSolve().

Referenced by solveFCGAttempt(), solvePCGAttempt(), and solvePCGResident().

◆ failNonFiniteZ()

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

◆ commRank()

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

◆ 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.

References axpy(), guessMatvec(), maxabs(), and removeMean().

Referenced by startResidual().

◆ armStopTest()

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

Definition at line 2559 of file mac_cutcell_mg.hpp.

Referenced by solveFCGAttempt(), solvePCGAttempt(), and solvePCGResident().

◆ 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.

References dot(), guessMatvec(), and removeMean().

Referenced by solveFCGAttempt(), and solvePCGAttempt().

◆ 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.

References axpy(), maxabs(), pcgUpdateMeanMaxDist(), and removeMean().

Referenced by solveFCGAttempt(), and solvePCGAttempt().

◆ finalRemoveMean()

void peclet::flow::CutcellMG::finalRemoveMean ( Level & l0,
CCField x )
inline

Definition at line 2584 of file mac_cutcell_mg.hpp.

References removeMean(), and peclet::flow::CutcellMG::Level::x.

Referenced by solveFCGAttempt(), and solvePCGAttempt().

◆ pApBreakdown()

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

Definition at line 2591 of file mac_cutcell_mg.hpp.

Referenced by solveFCGAttempt(), and solvePCGAttempt().

◆ 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.

Referenced by residentPacketExit(), solveFCGAttempt(), and solvePCGAttempt().

◆ 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.

References dot(), precondDotDist(), precondVcycle(), precondVcycleFp32(), and readSlot().

Referenced by solvePCGAttempt().

◆ solvePCGAttempt()

◆ ensureScalars()

void peclet::flow::CutcellMG::ensureScalars ( )
inline

◆ slot()

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

◆ readSlot()

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

Definition at line 2773 of file mac_cutcell_mg.hpp.

References krd_, and slot().

Referenced by firstPrecondRz(), lastSolveFailed(), noteHealth(), pcgPrecondRz(), and solvePCGResident().

◆ setSlot()

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

Definition at line 2778 of file mac_cutcell_mg.hpp.

References slot().

Referenced by noteBottomFlag(), residentAlpha(), residentPrecondRz(), and solvePCGResident().

◆ dotTo()

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

◆ copyDotTo()

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

◆ hostKrylovFusion()

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

◆ matvecDotTo()

◆ pcgUpdateSum()

◆ meanSubtractMaxTo()

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

◆ maxabsTo()

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

Definition at line 2952 of file mac_cutcell_mg.hpp.

References peclet::flow::ccReduce3(), hostAllFluid(), and slot().

Referenced by projectedGuess(), and residentUpdate().

◆ setDebugBreakdown()

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

Definition at line 2984 of file mac_cutcell_mg.hpp.

◆ matvecGuessDots()

◆ guessMatvec()

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

◆ 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

◆ guessTraceSave()

void peclet::flow::CutcellMG::guessTraceSave ( CCField x)
inline

Definition at line 3163 of file mac_cutcell_mg.hpp.

Referenced by startResidual().

◆ 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

◆ initialResidual()

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

◆ 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

◆ 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.

References dotTo(), guessMatvec(), kPAp, matvecDotTo(), and removeMean().

Referenced by solvePCGResident().

◆ 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.

References kRzNew, and readSlot().

Referenced by residentPrecondRz().

◆ 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.

References exitDot_, precondVcycle(), and precondVcycleFp32().

Referenced by firstPrecondRz(), and residentPrecondRz().

◆ 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.

References copyDotTo(), fusedWrapSmooth(), kHostMemory, kRz, precondDotTo(), and readSlot().

Referenced by solvePCGResident().

◆ residentAlpha()

void peclet::flow::CutcellMG::residentAlpha ( int it)
inline

Definition at line 3313 of file mac_cutcell_mg.hpp.

References kAlpha, kBrkPAp, kPAp, kRz, ks_, kStop, and setSlot().

Referenced by solvePCGResident().

◆ 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.

References kAlpha, kRn, ks_, kStop, maxabsTo(), meanSubtractMaxTo(), pcgUpdateSum(), and removeMean().

Referenced by solvePCGResident().

◆ 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.

References cgConverged(), kBrkPAp, kBrkRz, kPacket, kpk_, ks_, and noteBottomFlag().

Referenced by solvePCGResident().

◆ 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.

References dot(), dotTo(), kRzNew, noteHealth(), precondDotTo(), and setSlot().

Referenced by solvePCGResident().

◆ 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.

References kBeta, kBrkRz, kRz, kRzNew, ks_, and kStop.

Referenced by solvePCGResident().

◆ solvePCGResident()

◆ 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.

Referenced by main().

◆ 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.

References dot(), precondDotDist(), precondVcycle(), and precondVcycleFp32().

Referenced by solveFCGAttempt().

◆ 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.

Referenced by solveFCGAttempt().

◆ solveFCGAttempt()

◆ gpMatvec()

◆ precondVcycleCopy()

void peclet::flow::CutcellMG::precondVcycleCopy ( CCField zz,
CCField rr )
inline

◆ noteBicgExit()

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

◆ 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()

◆ vcycle()

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

◆ vcycleImpl()

◆ caSmooth()

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

Definition at line 4216 of file mac_cutcell_mg.hpp.

Referenced by smooth().

◆ boxLo()

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

Definition at line 4220 of file mac_cutcell_mg.hpp.

Referenced by matvecOverlap(), smooth(), and vcycleImpl().

◆ boxHi()

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

Definition at line 4223 of file mac_cutcell_mg.hpp.

Referenced by matvecOverlap(), smooth(), and vcycleImpl().

◆ fusedWrapReads()

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

◆ fusedWrapSmooth()

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

◆ effectiveVprec()

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

Definition at line 4262 of file mac_cutcell_mg.hpp.

References kHostMemory, kVcycleAuto, and kVcycleFp64.

Referenced by fp32Mode().

◆ fp32Mode()

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

Definition at line 4265 of file mac_cutcell_mg.hpp.

References effectiveVprec(), and kVcycleFp64.

Referenced by fp32Build(), fp32VcycleSolve(), and fp64Deferrable().

◆ fp32Carriable()

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

◆ fp32Build()

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

Definition at line 4300 of file mac_cutcell_mg.hpp.

References fp32Carriable(), and fp32Mode().

Referenced by buildFp32Weights(), ensureFp64(), and setOpenness().

◆ allocFp64()

void peclet::flow::CutcellMG::allocFp64 ( Level & v)
inline

Definition at line 4343 of file mac_cutcell_mg.hpp.

References allocLine().

Referenced by ensureFp64(), init(), and setOpenness().

◆ allocLine()

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

Definition at line 4357 of file mac_cutcell_mg.hpp.

Referenced by allocFp64().

◆ fp64Deferrable()

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

◆ fp32RangeFlag()

int * peclet::flow::CutcellMG::fp32RangeFlag ( int L)
inline

Definition at line 4376 of file mac_cutcell_mg.hpp.

Referenced by buildFp32Weights(), ensureFp64(), and setOpenness().

◆ fp32WeightsOk()

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

Definition at line 4386 of file mac_cutcell_mg.hpp.

Referenced by checkFp32DecoupledSets(), and fp32VcycleIneligible().

◆ fp32Reconfigure()

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

◆ ensureFp64()

◆ releaseFp64()

void peclet::flow::CutcellMG::releaseFp64 ( )
inline

Definition at line 4452 of file mac_cutcell_mg.hpp.

Referenced by fp32Reconfigure(), and setVcyclePrecision().

◆ buildFp32Weights()

void peclet::flow::CutcellMG::buildFp32Weights ( )
inline

◆ fp32VcycleSolve()

bool peclet::flow::CutcellMG::fp32VcycleSolve ( )
inline

Definition at line 4498 of file mac_cutcell_mg.hpp.

References fp32Mode(), fp32VcycleIneligible(), and kVcycleFp32.

Referenced by beginAttemptPrecision().

◆ setHealthTrace()

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

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()

◆ smoothFp32()

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

◆ vcycleFp32Impl()

◆ exitFp32()

◆ debugSetOverlaySolve()

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

Definition at line 4819 of file mac_cutcell_mg.hpp.

◆ debugSetStencilHaloOff()

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

Definition at line 4822 of file mac_cutcell_mg.hpp.

Referenced by solveSteps().

◆ setVcyclePrecision()

void peclet::flow::CutcellMG::setVcyclePrecision ( int mode)
inline

◆ vcyclePrecision()

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

Definition at line 4834 of file mac_cutcell_mg.hpp.

◆ lastVcycleFp32()

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

Definition at line 4836 of file mac_cutcell_mg.hpp.

Referenced by main().

◆ vcycleRestarts()

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

Definition at line 4839 of file mac_cutcell_mg.hpp.

◆ lastDiscardedIters()

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

Definition at line 4840 of file mac_cutcell_mg.hpp.

◆ lastSolveConverged()

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

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()

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

Definition at line 4851 of file mac_cutcell_mg.hpp.

References kVcycleAuto.

Referenced by failNonFiniteZ().

◆ fp32DecoupledCounts()

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

Definition at line 4854 of file mac_cutcell_mg.hpp.

References AC, peclet::flow::ccReduce3(), and ensureFp64().

Referenced by checkFp32DecoupledSets().

◆ checkFp32DecoupledSets()

void peclet::flow::CutcellMG::checkFp32DecoupledSets ( )
inline

Definition at line 4877 of file mac_cutcell_mg.hpp.

References fp32DecoupledCounts(), and fp32WeightsOk().

Referenced by buildFp32Weights(), and setOpenness().

◆ fp32VcycleIneligible()

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

Definition at line 4891 of file mac_cutcell_mg.hpp.

References fp32WeightsOk(), and fusedWrapSmooth().

Referenced by fp32VcycleSolve(), and vcycle().

◆ lineRelaxOn()

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

Definition at line 4951 of file mac_cutcell_mg.hpp.

Referenced by smooth(), and smoothFp32().

◆ linePeriodic()

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

Definition at line 4955 of file mac_cutcell_mg.hpp.

Referenced by lineSmoothColor(), and lineSmoothColorFp32().

◆ lineSmoothColor()

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

◆ lineSmoothColorFp32()

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

Definition at line 4984 of file mac_cutcell_mg.hpp.

References linePeriodic(), peclet::flow::lineRelaxColorFp32(), and parityOg().

Referenced by smoothFp32().

◆ smooth()

◆ agglomerateBottom()

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

Definition at line 5109 of file mac_cutcell_mg.hpp.

References agglomerateAuto().

Referenced by directBottomIneligible(), lineSmoothedLevels(), main(), and vcycleImpl().

◆ agglomerateAuto()

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

Definition at line 5126 of file mac_cutcell_mg.hpp.

Referenced by agglomerateBottom(), and directBottomIneligibleAll().

◆ bottomAdmissible()

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

◆ bottomAdmissibleHere()

bool peclet::flow::CutcellMG::bottomAdmissibleHere ( C3 g) const
inline

Definition at line 5163 of file mac_cutcell_mg.hpp.

References bottomAdmissible().

Referenced by init(), and printDepthCensus().

◆ depthRequestLabel()

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

Definition at line 5166 of file mac_cutcell_mg.hpp.

References nLevels().

Referenced by init(), and printDepthCensus().

◆ printDepthCensus()

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

◆ 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.

References agglomerateBottom().

Referenced by printDepthCensus().

◆ lineAxisLabel()

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

◆ directBottomIneligible()

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

◆ bottomLabelCode()

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

Definition at line 5258 of file mac_cutcell_mg.hpp.

Referenced by directBottomIneligible().

◆ bottomLabelWhy()

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

Definition at line 5269 of file mac_cutcell_mg.hpp.

Referenced by directBottomIneligible(), and directBottomIneligibleAll().

◆ directBottomIneligibleAll()

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

◆ requireDirectBottom()

void peclet::flow::CutcellMG::requireDirectBottom ( ) const
inline

Definition at line 5304 of file mac_cutcell_mg.hpp.

References directBottomIneligibleAll(), and kBottomDirect.

Referenced by precondVcycleFp32(), and vcycle().

◆ buildBottomStore()

◆ bottomLv() [1/2]

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

◆ bottomLv() [2/2]

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

Definition at line 5379 of file mac_cutcell_mg.hpp.

◆ buildGlobalBottomLevel()

bool peclet::flow::CutcellMG::buildGlobalBottomLevel ( )
inline

◆ gbIndex()

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

◆ buildGlobalBottomOp()

◆ gatherGlobalBottomRhs()

void peclet::flow::CutcellMG::gatherGlobalBottomRhs ( )
inline

Definition at line 5509 of file mac_cutcell_mg.hpp.

References gbIndex().

Referenced by directBottomSolve().

◆ scatterGlobalBottomX()

void peclet::flow::CutcellMG::scatterGlobalBottomX ( )
inline

Definition at line 5531 of file mac_cutcell_mg.hpp.

References gbIndex().

Referenced by directBottomSolve().

◆ evalBottomComponents()

void peclet::flow::CutcellMG::evalBottomComponents ( )
inline

◆ makeBottomKernel()

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

Definition at line 5584 of file mac_cutcell_mg.hpp.

References bottomLv(), ensureScalars(), kBottomFlag, and ks_.

Referenced by launchDirectKernel().

◆ noteBottomFlag()

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

Definition at line 5614 of file mac_cutcell_mg.hpp.

References kBottomFlag, and setSlot().

Referenced by lastSolveFailed(), and residentPacketExit().

◆ 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.

References peclet::flow::kBottomHostTeam, and kHostMemory.

Referenced by launchDirectFactor(), and launchDirectKernel().

◆ 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

◆ 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

◆ directPrefactorEligible()

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

Definition at line 5693 of file mac_cutcell_mg.hpp.

References directBottomIneligible(), kBottomAlgebraic, and kHostMemory.

Referenced by prefactorBottom().

◆ prefactorBottom()

void peclet::flow::CutcellMG::prefactorBottom ( )
inline

Definition at line 5701 of file mac_cutcell_mg.hpp.

References directPrefactorEligible(), kHostMemory, and launchDirectFactor().

◆ prefactorLaunches()

long peclet::flow::CutcellMG::prefactorLaunches ( ) const
inline

Definition at line 5716 of file mac_cutcell_mg.hpp.

◆ joinPrefactor()

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

◆ directBottomSolve()

◆ buildAmg()

◆ amgBottomDims()

C3 peclet::flow::CutcellMG::amgBottomDims ( ) const
inline

Definition at line 5798 of file mac_cutcell_mg.hpp.

Referenced by buildAmg().

◆ amgLocalRows()

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

◆ 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.

References peclet::flow::C3::x, peclet::flow::C3::y, and peclet::flow::C3::z.

Referenced by amgLocalRows().

◆ amgLabelComponents()

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

Definition at line 5884 of file mac_cutcell_mg.hpp.

Referenced by buildAmg().

◆ printAmgBuildCensus()

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

Definition at line 5915 of file mac_cutcell_mg.hpp.

Referenced by buildAmg().

◆ amgAssembleCsr()

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

Definition at line 5963 of file mac_cutcell_mg.hpp.

Referenced by buildAmg().

◆ graphAmgSolveBottom()

void peclet::flow::CutcellMG::graphAmgSolveBottom ( Level & lv)
inline

◆ amgRhsAnatomy()

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

Definition at line 6072 of file mac_cutcell_mg.hpp.

Referenced by pcgAmg().

◆ amgMeanZero()

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

Definition at line 6101 of file mac_cutcell_mg.hpp.

Referenced by pcgAmg().

◆ 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.

Referenced by amgReport(), and pcgAmg().

◆ 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.

References amgDot().

Referenced by pcgAmg().

◆ 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.

References amgDot(), amgMeanZero(), amgReport(), and amgRhsAnatomy().

Referenced by graphAmgSolveBottom().

◆ matvecOverlap()

◆ fill() [1/2]

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

◆ fillLocal()

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

Definition at line 6295 of file mac_cutcell_mg.hpp.

References fillAxis(), and fillWrap().

Referenced by buildGlobalBottomOp(), and fill().

◆ fill() [2/2]

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

Definition at line 6309 of file mac_cutcell_mg.hpp.

References fillWrap().

◆ fillWrap()

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

Definition at line 6327 of file mac_cutcell_mg.hpp.

References G, and peclet::flow::hostRunSerial().

Referenced by fill(), fillLocal(), and vcycleFp32Impl().

◆ fillOpenness()

void peclet::flow::CutcellMG::fillOpenness ( Level & lv)
inline

Definition at line 6419 of file mac_cutcell_mg.hpp.

References fill().

Referenced by setOpenness().

◆ fillAxis()

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

Definition at line 6424 of file mac_cutcell_mg.hpp.

References G, and N.

Referenced by fillLocal().

◆ axpy()

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

◆ aypx()

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

Definition at line 6482 of file mac_cutcell_mg.hpp.

Referenced by solveFCGAttempt(), and solvePCGAttempt().

◆ scale()

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

Definition at line 6490 of file mac_cutcell_mg.hpp.

Referenced by eigNormalize(), and lanczosTop().

◆ 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.

Referenced by eigPowerMin(), lanczosTop(), and solveChebyshev().

◆ maskSolid()

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

Definition at line 6507 of file mac_cutcell_mg.hpp.

Referenced by eigApplyT(), eigSeed(), and lanczosTop().

◆ addSeedNoise()

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

Definition at line 6522 of file mac_cutcell_mg.hpp.

Referenced by eigSeedRhs().

◆ 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.

References slot().

Referenced by estimateEigenvalues(), lanczosTop(), and solveChebyshev().

◆ eigenWarmReady()

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

Definition at line 6573 of file mac_cutcell_mg.hpp.

◆ eigenWarmMax()

CCField peclet::flow::CutcellMG::eigenWarmMax ( ) const
inline

Definition at line 6579 of file mac_cutcell_mg.hpp.

◆ eigenWarmMin()

CCField peclet::flow::CutcellMG::eigenWarmMin ( ) const
inline

Definition at line 6580 of file mac_cutcell_mg.hpp.

◆ setEigenWarm()

void peclet::flow::CutcellMG::setEigenWarm ( CCField vmax,
CCField vmin )
inline

Definition at line 6581 of file mac_cutcell_mg.hpp.

◆ lanczosTop()

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

◆ 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.

References kLanczosSteps.

Referenced by lanczosTop().

◆ eigSeedRhs()

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

Definition at line 6733 of file mac_cutcell_mg.hpp.

References addSeedNoise(), and maxabs().

Referenced by estimateEigenvalues().

◆ 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.

References maskSolid(), matvecOverlap(), precondVcycle(), and removeMean().

Referenced by eigPowerMax(), and eigPowerMin().

◆ eigNormalize()

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

Definition at line 6749 of file mac_cutcell_mg.hpp.

References dot(), and scale().

Referenced by eigPowerMax(), eigPowerMin(), and eigSeed().

◆ eigSeed()

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

Definition at line 6756 of file mac_cutcell_mg.hpp.

References eigNormalize(), maskSolid(), and removeMean().

Referenced by estimateEigenvalues().

◆ 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.

Referenced by estimateEigenvalues().

◆ 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.

References dot(), dotPair(), eigApplyT(), and eigNormalize().

Referenced by estimateEigenvalues().

◆ 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.

References dot(), eigApplyT(), eigNormalize(), and lin().

Referenced by estimateEigenvalues().

◆ 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.

Referenced by estimateEigenvalues().

◆ 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

◆ debugSetEigenScale()

void peclet::flow::CutcellMG::debugSetEigenScale ( double s)
inline

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

◆ setStopReference()

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

◆ setZeroInitialGuess()

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

Definition at line 6998 of file mac_cutcell_mg.hpp.

Referenced by peclet::flow::Solver< Grid >::projectSolve().

◆ setProjectedGuess()

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

Definition at line 7005 of file mac_cutcell_mg.hpp.

◆ clearProjectedGuess()

void peclet::flow::CutcellMG::clearProjectedGuess ( )
inline

Definition at line 7009 of file mac_cutcell_mg.hpp.

Referenced by peclet::flow::Solver< Grid >::projectSolve().

◆ numEigenEstimates()

long peclet::flow::CutcellMG::numEigenEstimates ( ) const
inline

Definition at line 7015 of file mac_cutcell_mg.hpp.

◆ chebyshevGuardTripped()

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

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.

References maxabs(), and removeMean().

◆ residualNorm()

double peclet::flow::CutcellMG::residualNorm ( CCField b,
CCField x,
CCField r,
CCField Ap )
inline

Definition at line 7026 of file mac_cutcell_mg.hpp.

References axpy(), matvecOverlap(), maxabs(), and removeMean().

◆ 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()

◆ 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.

References peclet::flow::ccReduce3Lanes(), and hostAllFluid().

Referenced by eigPowerMax().

◆ maxabs()

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

◆ 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.

References maxabsLocal().

Referenced by solveChebyshev().

◆ maxabsLocal()

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

Definition at line 7164 of file mac_cutcell_mg.hpp.

References peclet::flow::ccReduce3(), and hostAllFluid().

Referenced by maxabs(), and maxabsWithLocalSum().

◆ removeMeanHostCounted()

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

Definition at line 7198 of file mac_cutcell_mg.hpp.

References meanSubtractHostCounted(), and meanSumHostCounted().

Referenced by removeMean().

◆ meanSumHostCounted()

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

Definition at line 7203 of file mac_cutcell_mg.hpp.

References peclet::flow::ccReduce3Lanes(), kMsum, and slot().

Referenced by removeMeanDotTo(), and removeMeanHostCounted().

◆ meanSubtractHostCounted()

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

◆ removeMeanDotTo()

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

◆ removeMean()

◆ 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.

References mean().

Referenced by pcgUpdateMeanMaxDist(), removeMean(), and removeMeanDotDist().

◆ distKrylovFusion()

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

Definition at line 7377 of file mac_cutcell_mg.hpp.

References kHostMemory.

Referenced by solveFCGAttempt(), and solvePCGAttempt().

◆ pcgUpdateMeanMaxDist()

◆ removeMeanDotDist()

double peclet::flow::CutcellMG::removeMeanDotDist ( Level & lv)
inline

◆ precondDotDist()

double peclet::flow::CutcellMG::precondDotDist ( CCField z,
CCField r )
inline

Definition at line 7475 of file mac_cutcell_mg.hpp.

References dot(), exitDotDist_, and precondVcycle().

Referenced by fcgPrecondRz(), and pcgPrecondRz().

◆ setMeanRemovalScope()

void peclet::flow::CutcellMG::setMeanRemovalScope ( bool all)
inline

Definition at line 7499 of file mac_cutcell_mg.hpp.

References fp32Carriable(), fp32Reconfigure(), and fp64Deferrable().

◆ allreduceSeconds()

double peclet::flow::CutcellMG::allreduceSeconds ( ) const
inline

Definition at line 7508 of file mac_cutcell_mg.hpp.

◆ allreduceCount()

long peclet::flow::CutcellMG::allreduceCount ( ) const
inline

Definition at line 7509 of file mac_cutcell_mg.hpp.

◆ lastSolveFailed()

bool peclet::flow::CutcellMG::lastSolveFailed ( )
inline

Definition at line 7515 of file mac_cutcell_mg.hpp.

References kBottomFlag, noteBottomFlag(), and readSlot().

Referenced by main().

◆ resetAllreduceCounters()

void peclet::flow::CutcellMG::resetAllreduceCounters ( )
inline

Definition at line 7520 of file mac_cutcell_mg.hpp.

◆ setAgglomerationMode()

void peclet::flow::CutcellMG::setAgglomerationMode ( int mode)
inline

Definition at line 7775 of file mac_cutcell_mg.hpp.

Referenced by configure(), and main().

◆ setAgglomerationExtent()

void peclet::flow::CutcellMG::setAgglomerationExtent ( int cells)
inline

Definition at line 7776 of file mac_cutcell_mg.hpp.

◆ agglomerationExtent()

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

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.

Referenced by configure(), main(), and solveSteps().

◆ setCoarseGhost()

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

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()

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

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.

Referenced by main().

◆ lineRelaxation()

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

Definition at line 7792 of file mac_cutcell_mg.hpp.

◆ setSymmetricVcycle()

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

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.

Referenced by main().

◆ symmetricVcycle()

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

Definition at line 7804 of file mac_cutcell_mg.hpp.

◆ aspectThreshold()

double peclet::flow::CutcellMG::aspectThreshold ( ) const
inline

Definition at line 7805 of file mac_cutcell_mg.hpp.

◆ setCommAvoiding()

void peclet::flow::CutcellMG::setCommAvoiding ( int mask)
inline

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

Definition at line 7807 of file mac_cutcell_mg.hpp.

Referenced by mgChecks(), and solveSteps().

◆ commAvoiding()

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

Definition at line 7808 of file mac_cutcell_mg.hpp.

◆ setStrictPressure()

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

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

Definition at line 7810 of file mac_cutcell_mg.hpp.

◆ strictPressure()

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

Definition at line 7811 of file mac_cutcell_mg.hpp.

◆ setExactResidual()

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

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.

References fp32Carriable(), fp32Reconfigure(), and fp64Deferrable().

Referenced by solveSteps().

◆ exactResidual()

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

Definition at line 7818 of file mac_cutcell_mg.hpp.

◆ setOutflowCoefficient()

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

Definition at line 7822 of file mac_cutcell_mg.hpp.

◆ outflowCoefficient()

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

Definition at line 7823 of file mac_cutcell_mg.hpp.

◆ telescopeCount()

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

Definition at line 7827 of file mac_cutcell_mg.hpp.

Referenced by main(), and solveSteps().

◆ repartitionCount()

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

Definition at line 7836 of file mac_cutcell_mg.hpp.

Referenced by main(), and solveSteps().

◆ coarsestGlobal()

C3 peclet::flow::CutcellMG::coarsestGlobal ( ) const
inline

Definition at line 7844 of file mac_cutcell_mg.hpp.

Referenced by main(), and solveSteps().

◆ telescope()

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

Definition at line 8008 of file mac_cutcell_mg.hpp.

◆ setTelescopeForceLevel()

void peclet::flow::CutcellMG::setTelescopeForceLevel ( int L)
inline

Definition at line 8009 of file mac_cutcell_mg.hpp.

Referenced by configure(), main(), and solveSteps().

◆ setTelescopeMinExtent()

void peclet::flow::CutcellMG::setTelescopeMinExtent ( int e)
inline

Definition at line 8010 of file mac_cutcell_mg.hpp.

Referenced by main().

◆ setRepartition()

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

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

Definition at line 8012 of file mac_cutcell_mg.hpp.

Referenced by configure(), and main().

◆ repartition()

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

Definition at line 8013 of file mac_cutcell_mg.hpp.

◆ localLevels()

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

Definition at line 8016 of file mac_cutcell_mg.hpp.

Referenced by main(), solveSteps(), and solveSteps().

◆ agglomerationMode()

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

Definition at line 8017 of file mac_cutcell_mg.hpp.

◆ setGraphAmgBottom()

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

Definition at line 8018 of file mac_cutcell_mg.hpp.

◆ setBottomSolver()

void peclet::flow::CutcellMG::setBottomSolver ( int m)
inline

Definition at line 8027 of file mac_cutcell_mg.hpp.

Referenced by solveSteps().

◆ bottomSolver()

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

Definition at line 8028 of file mac_cutcell_mg.hpp.

◆ bottomConnected()

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

Definition at line 8032 of file mac_cutcell_mg.hpp.

◆ bottomComponents()

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

Definition at line 8033 of file mac_cutcell_mg.hpp.

◆ bottomForceForTest()

void peclet::flow::CutcellMG::bottomForceForTest ( )
inline

Definition at line 8034 of file mac_cutcell_mg.hpp.

References buildBottomStore(), and evalBottomComponents().

Referenced by main().

◆ directPlanes()

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

Definition at line 8048 of file mac_cutcell_mg.hpp.

Referenced by main().

◆ directFactorForTest()

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

◆ 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.

References launchDirectKernel().

Referenced by main().

◆ directSolveForTest()

int peclet::flow::CutcellMG::directSolveForTest ( )
inline

Definition at line 8067 of file mac_cutcell_mg.hpp.

References directBottomSolve().

Referenced by main().

◆ directSolveTeamForTest()

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

Definition at line 8076 of file mac_cutcell_mg.hpp.

References joinPrefactor(), launchDirectFactor(), and launchDirectKernel().

◆ directRestarts()

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

Definition at line 8091 of file mac_cutcell_mg.hpp.

References joinPrefactor().

◆ directPivotTolForTest()

void peclet::flow::CutcellMG::directPivotTolForTest ( double t)
inline

Definition at line 8096 of file mac_cutcell_mg.hpp.

◆ directMarkStaleForTest()

void peclet::flow::CutcellMG::directMarkStaleForTest ( )
inline

Definition at line 8102 of file mac_cutcell_mg.hpp.

References joinPrefactor().

Member Data Documentation

◆ G

◆ kNSlots

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

Definition at line 2746 of file mac_cutcell_mg.hpp.

Referenced by ensureScalars().

◆ kGuessPacket

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

Definition at line 2747 of file mac_cutcell_mg.hpp.

Referenced by ensureScalars(), and projectedGuess().

◆ kPacket

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

Definition at line 2748 of file mac_cutcell_mg.hpp.

Referenced by ensureScalars(), and residentPacketExit().

◆ kBrkPAp

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

Definition at line 2749 of file mac_cutcell_mg.hpp.

Referenced by residentAlpha(), and residentPacketExit().

◆ kBrkRz

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

Definition at line 2749 of file mac_cutcell_mg.hpp.

Referenced by residentBetaAypx(), residentPacketExit(), and solvePCGResident().

◆ ks_

◆ kcnt_

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

Definition at line 2751 of file mac_cutcell_mg.hpp.

Referenced by ensureScalars(), exitFp32(), and removeMean().

◆ kpk_

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

Definition at line 2756 of file mac_cutcell_mg.hpp.

Referenced by ensureScalars(), and residentPacketExit().

◆ kgp_

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

Definition at line 2757 of file mac_cutcell_mg.hpp.

Referenced by ensureScalars(), and projectedGuess().

◆ krd_

Kokkos::View<double, PinnedHost> peclet::flow::CutcellMG::krd_

Definition at line 2758 of file mac_cutcell_mg.hpp.

Referenced by ensureScalars(), and readSlot().

◆ kcz_

Kokkos::View<double, PinnedHost> peclet::flow::CutcellMG::kcz_

Definition at line 2759 of file mac_cutcell_mg.hpp.

Referenced by ensureScalars(), and solveChebyshev().

◆ exitDot_

ExitDot peclet::flow::CutcellMG::exitDot_

Definition at line 2844 of file mac_cutcell_mg.hpp.

Referenced by precondDotTo(), solvePCGResident(), and vcycleImpl().

◆ kHostMemory

bool peclet::flow::CutcellMG::kHostMemory
staticconstexpr

◆ kChebSymShift

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

Definition at line 6566 of file mac_cutcell_mg.hpp.

Referenced by estimateEigenvalues().

◆ kChebBracket

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

◆ kLanczosSteps

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

Definition at line 6598 of file mac_cutcell_mg.hpp.

Referenced by lanczosTop(), and symTridiagTop().

◆ kLanczosTol

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

Definition at line 6599 of file mac_cutcell_mg.hpp.

Referenced by lanczosTop().

◆ exitDotDist_

ExitDotDist peclet::flow::CutcellMG::exitDotDist_

Definition at line 7474 of file mac_cutcell_mg.hpp.

Referenced by precondDotDist(), and vcycleImpl().


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