3 #ifndef __H__UG__LIB_DISC__TIME_DISC__TIME_INTEGRATOR_OBSERVERS__LUA_CALLBACK_OBSERVER
4 #define __H__UG__LIB_DISC__TIME_DISC__TIME_INTEGRATOR_OBSERVERS__LUA_CALLBACK_OBSERVER
13 template<
class TDomain,
class TAlgebra>
40 return lua_return_value == 1;
represents numerical solutions on a grid using an algebraic vector
Definition: grid_function.h:121
Abstract base class for time integration observer.
Definition: time_integrator_observer_interface.h:43
Definition: lua_callback_observer.hpp:16
virtual ~LuaCallbackObserver()
Definition: lua_callback_observer.hpp:28
const int m_lua_id
Definition: lua_callback_observer.hpp:55
SmartPtr< grid_function_type > m_u
Definition: lua_callback_observer.hpp:54
GridFunction< TDomain, TAlgebra > grid_function_type
Definition: lua_callback_observer.hpp:19
SmartPtr< grid_function_type > get_current_solution()
Definition: lua_callback_observer.hpp:49
ITimeIntegratorObserver< TDomain, TAlgebra > base_type
Definition: lua_callback_observer.hpp:18
LuaFunction< number, number > lua_function_type
Definition: lua_callback_observer.hpp:20
SmartPtr< lua_function_type > m_lua_callback
Definition: lua_callback_observer.hpp:53
void set_callback(const char *luaCallback)
Definition: lua_callback_observer.hpp:43
LuaCallbackObserver(int lua_id)
Definition: lua_callback_observer.hpp:25
LuaCallbackObserver()
Definition: lua_callback_observer.hpp:22
virtual bool step_process(SmartPtr< grid_function_type > uNew, int step, number time, number dt)
Definition: lua_callback_observer.hpp:31
const NullSmartPtr SPNULL
The equivalent to NULL for smart pointers.
Definition: smart_pointer.h:90
double number
Definition: types.h:124
SmartPtr< T, FreePolicy > make_sp(T *inst)
returns a SmartPtr for the passed raw pointer
Definition: smart_pointer.h:836