diff --git a/ugbase/bridge/algebra_bridges/common_bridge.cpp b/ugbase/bridge/algebra_bridges/common_bridge.cpp index fbf685047..5ce603f3b 100644 --- a/ugbase/bridge/algebra_bridges/common_bridge.cpp +++ b/ugbase/bridge/algebra_bridges/common_bridge.cpp @@ -42,6 +42,7 @@ #include "bridge/util_algebra_dependent.h" // operator interfaces +#include "lib_algebra/operator/fixed_convergence_check.h" #include "lib_algebra/operator/interface/operator.h" #include "lib_algebra/operator/interface/matrix_operator.h" #include "lib_algebra/operator/interface/matrix_operator_inverse.h" @@ -435,6 +436,19 @@ static void Algebra(Registry& reg, string grp) .set_construct_as_smart_pointer(true); reg.add_class_to_group(name, "EnergyConvCheck", tag); } + +// FixedConvCheck + { + typedef FixedConvergenceCheck T; + typedef IConvergenceCheck TBase; + string name = string("FixedConvergenceCheck").append(suffix); + reg.add_class_(name, grp, "Convergence Check") + // .add_constructor() + .template add_constructor("") + .set_construct_as_smart_pointer(true); + reg.add_class_to_group(name, "FixedConvergenceCheck", tag); + } + } diff --git a/ugbase/lib_algebra/operator/fixed_convergence_check.h b/ugbase/lib_algebra/operator/fixed_convergence_check.h index 47be4ddf1..104354c9e 100644 --- a/ugbase/lib_algebra/operator/fixed_convergence_check.h +++ b/ugbase/lib_algebra/operator/fixed_convergence_check.h @@ -110,7 +110,7 @@ class FixedConvergenceCheck : public IConvergenceCheck virtual number reduction() const { UG_ASSERT(0, "not provided by FixedConvergenceCheck"); return 0;} // returns the current convergence rate - virtual number rate() const { UG_ASSERT(0, "not provided by FixedConvergenceCheck"); return 0;} + virtual number rate() const { return 0;} // returns the averaged convergence rate virtual number avg_rate() const { UG_ASSERT(0, "not provided by FixedConvergenceCheck"); return 0;}