13#ifndef dealii_solver_h
14#define dealii_solver_h
24#include <boost/signals2.hpp>
30template <
typename number>
337template <
typename VectorType = Vector<
double>>
399 boost::signals2::connection
402 const double check_value,
403 const VectorType ¤t_iterate)>
438 template <
typename Iterator>
464 boost::signals2::signal<
466 const double check_value,
467 const VectorType ¤t_iterate),
477template <
typename VectorType>
493template <
typename VectorType>
495template <
typename Iterator>
498 const Iterator
end)
const
501 ExcMessage(
"You can't combine iterator states if no state is given."));
507 for (; p !=
end; ++p)
508 state = this->
operator()(state, *p);
514template <
typename VectorType>
525 connect([&solver_control](
const unsigned int iteration,
526 const double check_value,
527 const VectorType &) {
528 return solver_control.
check(iteration, check_value);
534template <
typename VectorType>
538 memory(static_vector_memory)
544 connect([&solver_control](
const unsigned int iteration,
545 const double check_value,
546 const VectorType &) {
547 return solver_control.
check(iteration, check_value);
553template <
typename VectorType>
557 const double check_value,
558 const VectorType ¤t_iterate)>
561 return iteration_status.connect(slot);
boost::signals2::signal< SolverControl::State(const unsigned int iteration, const double check_value, const VectorType ¤t_iterate), StateCombiner > iteration_status
SolverBase(SolverControl &solver_control, VectorMemory< VectorType > &vector_memory)
boost::signals2::connection connect(const std::function< SolverControl::State(const unsigned int iteration, const double check_value, const VectorType ¤t_iterate)> &slot)
GrowingVectorMemory< VectorType > static_vector_memory
VectorMemory< VectorType > & memory
SolverBase(SolverControl &solver_control)
virtual State check(const unsigned int step, const double check_value)
@ iterate
Continue iteration.
@ success
Stop iteration, goal reached.
@ failure
Stop iteration, goal not reached.
#define DEAL_II_NAMESPACE_OPEN
#define DEAL_II_CXX20_REQUIRES(condition)
#define DEAL_II_NAMESPACE_CLOSE
#define Assert(cond, exc)
static ::ExceptionBase & ExcMessage(std::string arg1)
SolverControl::State operator()(const Iterator begin, const Iterator end) const
SolverControl::State operator()(const SolverControl::State state1, const SolverControl::State state2) const