00001 /* 00002 * KnownSolutionErrorEvaluator.hpp 00003 * 00004 * Created on: Aug 10, 2015 00005 * Author: damian 00006 */ 00007 00008 #ifndef SRC_AMG_MKB_LAD_PETSC_KNOWNSOLUTIONERROREVALUATOR_HPP_ 00009 #define SRC_AMG_MKB_LAD_PETSC_KNOWNSOLUTIONERROREVALUATOR_HPP_ 00010 #include "ErrorEvaluator.hpp" 00011 00012 class KnownSolutionErrorEvaluator : public ErrorEvaluator{ 00013 public: 00014 KnownSolutionErrorEvaluator(int size); 00015 virtual ~KnownSolutionErrorEvaluator(); 00016 virtual bool Stop(Vec x, int iteration_nr); 00017 private: 00018 int size; 00019 Vec exact_solution; 00020 Vec solution_difference; 00021 }; 00022 00023 #endif /* SRC_AMG_MKB_LAD_PETSC_KNOWNSOLUTIONERROREVALUATOR_HPP_ */