00001 #ifdef CH_LANG_CC 00002 /* 00003 * _______ __ 00004 * / ___/ / ___ __ _ / / ___ 00005 * / /__/ _ \/ _ \/ V \/ _ \/ _ \ 00006 * \___/_//_/\___/_/_/_/_.__/\___/ 00007 * Please refer to Copyright.txt, in Chombo's root directory. 00008 */ 00009 #endif 00010 00011 // BVS, June 18, 2003 00012 00013 #ifndef _NOOPSOLVER_H_ 00014 #define _NOOPSOLVER_H_ 00015 00016 #include "LinearSolver.H" 00017 #include "NamespaceHeader.H" 00018 00019 template <class T> 00020 class NoOpSolver : public LinearSolver<T> 00021 { 00022 public: 00023 NoOpSolver(){;} 00024 virtual ~NoOpSolver(){;} 00025 00026 virtual void setHomogeneous(bool a_homogeneous){;} 00027 00028 virtual void define(LinearOp<T>* a_factory, bool a_homogeneous){;} 00029 virtual void solve(T& a_phi, const T& a_rhs); 00030 virtual void setConvergenceMetrics(Real a_metric, 00031 Real a_tolerance) {;} 00032 }; 00033 00034 template <class T> 00035 void NoOpSolver<T>::solve(T& a_phi, const T& a_rhs) 00036 { 00037 //as the name implies, this function does nothing. 00038 } 00039 00040 #include "NamespaceFooter.H" 00041 #endif /*_NOOPSOLVER_H_*/