![]() |
Shamrock 2025.10.0
Astrophysical Code
|
7-point stencil for the discrete Laplacian operator More...
#include "shambackends/vec.hpp"#include "shamcomm/logs.hpp"#include "shammodels/common/amr/NeighGraph.hpp"#include <shambackends/sycl.hpp>Go to the source code of this file.
Namespaces | |
| namespace | shammodels |
| namespace for models | |
| namespace | shammodels::basegodunov |
| namespace for the basegodunov model | |
Typedefs | |
| using | shammodels::basegodunov::Direction = shammodels::basegodunov::modules::Direction |
Functions | |
| template<class T, class Tvec, class ACCField> | |
| T | shammodels::basegodunov::laplacian_7pt_with_Aii (const shambase::VecComponent< Tvec > *cell_sizes, const u32 block_size, const u32 cell_global_id, const AMRGraphLinkiterator &graph_iter_xp, const AMRGraphLinkiterator &graph_iter_xm, const AMRGraphLinkiterator &graph_iter_yp, const AMRGraphLinkiterator &graph_iter_ym, const AMRGraphLinkiterator &graph_iter_zp, const AMRGraphLinkiterator &graph_iter_zm, ACCField &&field_access, T &Aii) |
| Get the discretized (finite volume) Laplacian, and the diagonal coefficient of the associated matrix. | |
| template<class T, class Tvec, class ACCField> | |
| T | shammodels::basegodunov::laplacian_7pt (const shambase::VecComponent< Tvec > *cell_sizes, const u32 block_size, const u32 cell_global_id, const AMRGraphLinkiterator &graph_iter_xp, const AMRGraphLinkiterator &graph_iter_xm, const AMRGraphLinkiterator &graph_iter_yp, const AMRGraphLinkiterator &graph_iter_ym, const AMRGraphLinkiterator &graph_iter_zp, const AMRGraphLinkiterator &graph_iter_zm, ACCField &&field_access) |
| Get the discretized (finite volume) Laplacian. | |
| template<class T, class Tvec> | |
| T | shammodels::basegodunov::jacobi_weight_7pt (const shambase::VecComponent< Tvec > *cell_sizes, const u32 block_size, const u32 cell_global_id, const AMRGraphLinkiterator &graph_iter_xp, const AMRGraphLinkiterator &graph_iter_xm, const AMRGraphLinkiterator &graph_iter_yp, const AMRGraphLinkiterator &graph_iter_ym, const AMRGraphLinkiterator &graph_iter_zp, const AMRGraphLinkiterator &graph_iter_zm) |
| Get the weight of the Jacobi preconditioner of the 7-point Laplacian. | |
7-point stencil for the discrete Laplacian operator
Adapted from the PhD work of Léodasce Sewanou.
Definition in file CGLaplacianStencil.hpp.