Skip to content

Commit

Permalink
adding protected getter returning the current iteration number
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt committed May 20, 2015
1 parent 33e0cf3 commit b5feed5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/two_scale_convergence_tester_drbar.hpp
Expand Up @@ -42,6 +42,7 @@ class Convergence_tester_DRbar<Model<Two_scale> > :
void set_max_iterations(unsigned); ///< set maximum number of iterations

protected:
unsigned get_iteration() const; ///< get current iteration number
const Model<Two_scale>& get_model() const; ///< get model
const Model<Two_scale>& get_last_iteration_model() const; ///< get model state during last iteration
virtual double max_rel_diff() const = 0; ///< maximum relative difference to last iteration
Expand Down Expand Up @@ -121,6 +122,12 @@ double Convergence_tester_DRbar<Model<Two_scale> >::get_current_accuracy() const
return current_accuracy;
}

template <template<class Method> class Model>
unsigned Convergence_tester_DRbar<Model<Two_scale> >::get_iteration() const
{
return it_count;
}

template <template<class Method> class Model>
const Model<Two_scale>&
Convergence_tester_DRbar<Model<Two_scale> >::get_model() const
Expand Down

0 comments on commit b5feed5

Please sign in to comment.