ComponentError.h
00001 #ifndef gridripper_amr1d_error_ComponentError_h
00002 #define gridripper_amr1d_error_ComponentError_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 ComponentError: public AMError
00013 {
00014 private:
00015 int index;
00016
00017 public:
00018 ComponentError(const PDE& pde, const string& arg)
00019 throw(IllegalArgumentException&);
00020
00021 void calcErrors(const PDE* pde, const Grad* d,
00022 const Grid& g, const Grid& g2,
00023 GReal_t t, double c, tvalarray<double>& errors) const;
00024 };
00025
00026 } } }
00027
00028 #endif