15#ifndef dealii_solver_h
16#define dealii_solver_h
26#include <boost/signals2.hpp>
32template <
typename number>
339template <
typename VectorType = Vector<
double>>
401 boost::signals2::connection
404 const double check_value,
405 const VectorType ¤t_iterate)>
440 template <
typename Iterator>
466 boost::signals2::signal<
468 const double check_value,
469 const VectorType ¤t_iterate),
479template <
typename VectorType>
495template <
typename VectorType>
497template <
typename Iterator>
500 const Iterator end)
const
503 ExcMessage(
"You can't combine iterator states if no state is given."));
509 for (; p !=
end; ++p)
510 state = this->
operator()(state, *p);
516template <
typename VectorType>
527 connect([&solver_control](
const unsigned int iteration,
528 const double check_value,
529 const VectorType &) {
530 return solver_control.
check(iteration, check_value);
536template <
typename VectorType>
540 memory(static_vector_memory)
546 connect([&solver_control](
const unsigned int iteration,
547 const double check_value,
548 const VectorType &) {
549 return solver_control.
check(iteration, check_value);
555template <
typename VectorType>
559 const double check_value,
560 const VectorType ¤t_iterate)>
563 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)
VectorType::value_type * end(VectorType &V)
VectorType::value_type * begin(VectorType &V)
SolverControl::State operator()(const Iterator begin, const Iterator end) const
SolverControl::State operator()(const SolverControl::State state1, const SolverControl::State state2) const