L2ComponentError.h
00001 #ifndef gridripper_amr1d_error_L2ComponentError_h
00002 #define gridripper_amr1d_error_L2ComponentError_h
00003
00004 #include <gridripper/amr1d/AMError.h>
00005 #include <gridripper/lang/IllegalArgumentException.h>
00006
00007 namespace gridripper { namespace amr1d { namespace error {
00008
00009 using namespace gridripper::amr1d;
00010 using namespace std;
00011
00012 class L2ComponentError: public AMError
00013 {
00014 private:
00015 unsigned int offset;
00016 unsigned int nMaxComponents;
00017
00018 public:
00019 L2ComponentError(const PDE& pde, const string& arg)
00020 throw(IllegalArgumentException&);
00021
00022 void calcErrors(const PDE* pde, const Grad* d,
00023 const Grid& g, const Grid& g2,
00024 GReal_t t, double c, tvalarray<double>& errors) const;
00025 };
00026
00027 } } }
00028
00029 #endif