|
core
Shared MPI block decomposition + asynchronous ghost-layer exchange (header-only C++20)
|
#include <momentum.hpp>
Public Types | |
| using | Octree = BlockOctree< 3, Bits > |
| using | M = typename Octree::M |
| using | Code = typename Octree::Code |
Public Member Functions | |
| void | build (const Octree &finest, const std::vector< double > &diag0, const std::vector< Index > &start0, const std::vector< Index > &nbr0, const std::vector< double > &coef0) |
| Build the Galerkin hierarchy from the finest octree + the assembled fine operator CSR (diag + face CSR, as produced by AmrCutCell::assembleOperator). | |
| void | setGaussSeidel (bool on) |
| Opt-in: use multicolour Gauss–Seidel as the smoother (per-level colouring built at build) instead of weighted Jacobi — ~2× better smoothing, fewer V-cycles. | |
| void | vcycle (int pre=2, int post=2, int bottom=30, double omega=0.7, std::size_t L=0) |
| One V-cycle on level L solving A u = b (correction scheme). | |
| std::size_t | numLevels () const |
| Index | numLeaves (std::size_t L=0) const |
| View< double > | x (std::size_t L=0) |
| View< double > | b (std::size_t L=0) |
| const MomentumOp & | op (std::size_t L=0) const |
Definition at line 262 of file momentum.hpp.
| using peclet::core::amr::MomentumMG< Bits >::Octree = BlockOctree<3, Bits> |
Definition at line 264 of file momentum.hpp.
Definition at line 265 of file momentum.hpp.
| using peclet::core::amr::MomentumMG< Bits >::Code = typename Octree::Code |
Definition at line 266 of file momentum.hpp.
|
inline |
Build the Galerkin hierarchy from the finest octree + the assembled fine operator CSR (diag + face CSR, as produced by AmrCutCell::assembleOperator).
Definition at line 270 of file momentum.hpp.
References peclet::core::toDevice().
|
inline |
Opt-in: use multicolour Gauss–Seidel as the smoother (per-level colouring built at build) instead of weighted Jacobi — ~2× better smoothing, fewer V-cycles.
Default off (Jacobi).
Definition at line 375 of file momentum.hpp.
|
inline |
One V-cycle on level L solving A u = b (correction scheme).
Definition at line 378 of file momentum.hpp.
References peclet::core::amr::prolongAdd(), peclet::core::amr::residualMom(), peclet::core::amr::restrictField(), and peclet::core::amr::MomentumMG< Bits >::vcycle().
Referenced by peclet::core::amr::MomentumMG< Bits >::vcycle().
|
inline |
Definition at line 395 of file momentum.hpp.
|
inline |
Definition at line 396 of file momentum.hpp.
|
inline |
Definition at line 397 of file momentum.hpp.
|
inline |
Definition at line 398 of file momentum.hpp.
|
inline |
Definition at line 399 of file momentum.hpp.