Skip to content

Commit

Permalink
add non-fininte function value exception
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander Voigt committed Jul 15, 2015
1 parent af6f5f8 commit dabad5e
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/root_solver.hpp
Expand Up @@ -20,9 +20,11 @@
#define ROOT_SOLVER_H

#include "rg_flow.hpp"
#include "error.hpp"

#include <vector>
#include <cstddef>
#include <string>

#include <gsl/gsl_vector.h>
#include <gsl/gsl_multiroots.h>
Expand Down Expand Up @@ -96,6 +98,16 @@ class RGFlow<Root> {
, constraints(c)
{}
};

class NonFiniteFunctionValuesError : public Error {
public:
NonFiniteFunctionValuesError() {}
virtual ~NonFiniteFunctionValuesError() {}
virtual std::string what() const {
return std::string("NonFiniteFunctionValuesError");
}
};

std::vector<TModel*> models; ///< tower of models (from low to high scale)
std::size_t iteration; ///< iteration number (starting at 0)
Convergence_tester<Root>* convergence_tester; ///< the convergence tester
Expand Down

0 comments on commit dabad5e

Please sign in to comment.