BubbleProfiler  0.3.0
by Peter Athron, Csaba Balazs, Michael Bardsley, Andrew Fowlie, Dylan Harries & Graham White
Public Member Functions | List of all members
BubbleProfiler::Profile_convergence_tester Class Referenceabstract

#include <profile_convergence_tester.hpp>

Inheritance diagram for BubbleProfiler::Profile_convergence_tester:
Inheritance graph
[legend]

Public Member Functions

virtual ~Profile_convergence_tester ()=default
 
virtual int get_max_iterations () const =0
 
virtual bool is_converged (const Potential &, const Field_profiles &)=0
 
virtual void restart ()=0
 Re-initialize the convergence tester. More...
 

Detailed Description

Abstract interface for a class used to determine whether a candidate bubble solution has converged. Implementations are assumed to be stateful, tracking relevant information about successive iterations until the relevant convergence criterea are met.

NOTE: Convergence testers may supply a maximum iteration count. However, it is NOT guaranteed that implementations will return is_converged:TRUE when this is exceeded. It is expected that instead, client classes will make use of this value, and possibly provide a warning when the max count is exceeded before the solution converges.

Definition at line 38 of file profile_convergence_tester.hpp.

Constructor & Destructor Documentation

virtual BubbleProfiler::Profile_convergence_tester::~Profile_convergence_tester ( )
virtualdefault

Member Function Documentation

virtual int BubbleProfiler::Profile_convergence_tester::get_max_iterations ( ) const
pure virtual
virtual bool BubbleProfiler::Profile_convergence_tester::is_converged ( const Potential ,
const Field_profiles  
)
pure virtual
virtual void BubbleProfiler::Profile_convergence_tester::restart ( )
pure virtual

Re-initialize the convergence tester.

Implemented in BubbleProfiler::Relative_convergence_tester.


The documentation for this class was generated from the following file: