LILAC
|
#include <example_integrator_tmpl.hpp>
Public Member Functions | |
int | integrate (ptr_passer u, double t0, double tf) |
Actual implementation of the integration function. | |
std::string | type () const |
const std::type_info & | vtype () const |
void | postprocess (input &in) |
void | update () |
![]() | |
std::vector< std::string > | dependencies () const |
Returns the variables that this class depends on. | |
![]() | |
virtual void | initial_condition (ptr_passer in, size_t len) |
void | initial_condition (ptr_passer in) |
virtual | ~integrator () |
Blank destructor for integrator. | |
![]() | |
size_t | get_dimension () const |
![]() | |
item () | |
virtual | ~item () |
virtual void | print () const |
Standard print function. | |
void | setname (const std::string n) |
void | set_write_name (std::string wname) |
const std::string & | name () const |
const std::string & | write_name () const |
![]() | |
bool | compare (const vartype *in) const |
bool | compare (const vartype &in) const |
bool | compare (const std::type_info &tinf) |
template<typename T > | |
bool | compare () const |
template<typename T > | |
bool | compare (const T &in) const |
std::string | vname () const |
virtual const std::type_info & | vtype_internal () const |
bool | compare_internal (const vartype *in) const |
bool | compare_internal (const vartype &in) const |
bool | compare_internal (const std::type_info &tinf) |
template<typename T > | |
bool | compare_internal () const |
template<typename T > | |
bool | compare_internal (const T &in) const |
std::string | vname_internal () const |
virtual | ~vartype () |
Private Types | |
typedef float_traits< T >::type | real_type |
The current type of floating point value. |
Private Attributes | |
real_type | rval1 |
real_type | calc_val |
size_t | unsigned_var |
int | rval2 |
std::string | something |
Additional Inherited Members | |
![]() | |
static std::shared_ptr< item > | create (std::string name, engineimp *rval) |
![]() | |
engineimp * | holder |
![]() | |
void | print_upstream () |
virtual void | _do_mem_update (size_t dim_old) |
void | add_as_parent (item_dim *p) |
void | add_as_parent (std::shared_ptr< item_dim > p) |
void | update_dim (size_t dim_new) |
![]() | |
rhs * | rh_val |
Definition at line 26 of file example_integrator_tmpl.hpp.
|
private |
The current type of floating point value.
This queries the float_traits template class to see what the underlying real type is.
Why do this instead of use double everywhere? If a program is using 32bit floats, then double take up extra memory and waste lots of time in the conversion process. If a program uses 80 or 128 bit floats, or higher, then doubles aren't big enough. Hence, we use a type_traits class that gives us the proper type for the variable being used. Any type that is parameterized by a floating_point type value is automatically included in float_traits, and so are any floating point types. For an example of how to define float_traits for a custom type, see example_type. Also see the postprocess function for how to deal with this type in postprocessing
Definition at line 45 of file example_integrator_tmpl.hpp.
|
virtual |
Actual implementation of the integration function.
Reimplemented from example_integrator.
Definition at line 75 of file example_integrator_tmpl.hpp.
|
virtual |
Reimplemented from example_integrator.
Definition at line 98 of file example_integrator_tmpl.hpp.
|
inlinevirtual |
Reimplemented from example_integrator.
Definition at line 56 of file example_integrator_tmpl.hpp.
|
virtual |
Reimplemented from item.
Definition at line 120 of file example_integrator_tmpl.hpp.
|
inlinevirtual |
Reimplemented from example_integrator.
Definition at line 59 of file example_integrator_tmpl.hpp.
|
private |
Definition at line 46 of file example_integrator_tmpl.hpp.
|
private |
Definition at line 46 of file example_integrator_tmpl.hpp.
|
private |
Definition at line 51 of file example_integrator_tmpl.hpp.
|
private |
Definition at line 52 of file example_integrator_tmpl.hpp.
|
private |
Definition at line 50 of file example_integrator_tmpl.hpp.