Main class that encapsulate a double constant. More...
Main class that encapsulate a double constant.
prp | no meaning |
Definition at line 1025 of file FD_expressions.hpp.
#include <FD_expressions.hpp>
Public Member Functions | |
grid_dist_expression (const double &d) | |
constructor from a constant expression | |
void | init () const |
This function must be called before value. | |
double | value (const grid_dist_key_dx< dim > &k, comb< dim > &c_where) const |
Evaluate the expression. | |
Private Attributes | |
double | d |
constant parameter | |
|
inline |
constructor from a constant expression
Definition at line 1033 of file FD_expressions.hpp.
|
inline |
This function must be called before value.
it initialize the expression if needed
Definition at line 1042 of file FD_expressions.hpp.
|
inline |
Evaluate the expression.
k | ignored position in the grid |
It just return the value set in the constructor
Definition at line 1054 of file FD_expressions.hpp.
|
private |
constant parameter
Definition at line 1028 of file FD_expressions.hpp.