00001 #ifndef _CentralLimiter_H 00002 #define _CentralLimiter_H 00003 00004 00005 00055 #include <math.h> 00056 00057 00058 class CentralLimiter : public AbsLimiter 00059 { 00060 public: 00061 virtual ~CentralLimiter(){} 00062 00063 // average 00064 // The average is the central difference classic solution. It may ocsillate around the solution 00065 // ========================================================================================= 00066 // average(a,b)= (a + b)/2 00067 virtual double average(double a, double b){ return 0.5*(a+b); } 00068 }; 00069 00070 #endif