OpenFPM_pdata  4.1.0
Project that contain the implementation of distributed structures
 
Loading...
Searching...
No Matches
FDScheme< Sys_eqs >::constant_b Struct Reference

Encapsulation of the b term as constant. More...

Detailed Description

template<typename Sys_eqs>
struct FDScheme< Sys_eqs >::constant_b

Encapsulation of the b term as constant.

Definition at line 137 of file FDScheme.hpp.

#include <FDScheme.hpp>

Public Member Functions

 constant_b (typename Sys_eqs::stype scal)
 Constrictor from a scalar.
 
Sys_eqs::stype get (grid_dist_key_dx< Sys_eqs::dims > &key)
 Get the b term on a grid point.
 

Data Fields

Sys_eqs::stype scal
 scalar
 

Constructor & Destructor Documentation

◆ constant_b()

template<typename Sys_eqs >
FDScheme< Sys_eqs >::constant_b::constant_b ( typename Sys_eqs::stype  scal)
inline

Constrictor from a scalar.

Parameters
scalscalar

Definition at line 147 of file FDScheme.hpp.

Member Function Documentation

◆ get()

template<typename Sys_eqs >
Sys_eqs::stype FDScheme< Sys_eqs >::constant_b::get ( grid_dist_key_dx< Sys_eqs::dims > &  key)
inline

Get the b term on a grid point.

Note
It does not matter the grid point it is a scalar
Parameters
keygrid position (unused because it is a constant)
Returns
the scalar

Definition at line 161 of file FDScheme.hpp.

Field Documentation

◆ scal

template<typename Sys_eqs >
Sys_eqs::stype FDScheme< Sys_eqs >::constant_b::scal

scalar

Definition at line 140 of file FDScheme.hpp.


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