11 const std::string fname =
"lbs::TransientSolver::PostStepCallBackFunction";
15 auto& L = chi::console.GetConsoleState();
19 lua_getglobal(L, lua_func_name.c_str());
22 if (not lua_isfunction(L, -1))
23 throw std::logic_error(fname +
" attempted to access lua-function, " +
24 lua_func_name +
", but it seems the function"
25 " could not be retrieved.");
33 if (lua_pcall(L,0,0,0) == 0)
37 throw std::logic_error(fname +
" attempted to call lua-function, " +
38 lua_func_name +
", but the call failed.");
void PostStepCallBackFunction() const
struct lbs::DiscOrdTransientSolver::Options transient_options_
std::string console_call_back_function