Laplacian second order approximation CENTRAL Scheme. More...
Laplacian second order approximation CENTRAL Scheme.
1.0 * | -4.0 1.0 *---+---* 1.0 | * 1.0 *
Definition at line 68 of file Laplacian.hpp.
#include <Laplacian.hpp>
Static Public Member Functions | |
static void | value (const typename stub_or_real< Sys_eqs, Sys_eqs::dims, typename Sys_eqs::stype, typename Sys_eqs::b_grid::decomposition::extended_type >::type &g_map, grid_dist_key_dx< Sys_eqs::dims > &kmap, const grid_sm< Sys_eqs::dims, void > &gs, typename Sys_eqs::stype(&spacing)[Sys_eqs::dims], std::unordered_map< long int, typename Sys_eqs::stype > &cols, typename Sys_eqs::stype coeff) |
Calculate which colums of the Matrix are non zero. | |
|
inlinestatic |
Calculate which colums of the Matrix are non zero.
stub_or_real it is just for change the argument type when testing, in normal conditions it is a distributed map
g_map | map grid |
kmap | position in the grid |
spacing | of the grid |
gs | Grid info |
cols | non-zero colums calculated by the function |
coeff | coefficent (constant in front of the derivative) |
Definition at line 90 of file Laplacian.hpp.