![]() |
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg. 00002 // Licensed under the GNU GPL Version 2. 00003 00004 #ifndef __QUADRATURE_H 00005 #define __QUADRATURE_H 00006 00007 #include <dolfin/Point.h> 00008 00009 namespace dolfin { 00010 00011 class Quadrature { 00012 public: 00013 00014 Quadrature(unsigned int n); 00015 virtual ~Quadrature(); 00016 00018 int size() const; 00019 00021 const Point& point(unsigned int i) const; 00022 00024 real weight(unsigned int i) const; 00025 00027 real measure() const; 00028 00030 virtual void show() const = 0; 00031 00032 protected: 00033 00034 unsigned int n; // Number of quadrature points 00035 Point* points; // Quadrature points 00036 real* weights; // Quadrature weights 00037 real m; // Sum of weights 00038 00039 }; 00040 00041 } 00042 00043 #endif
Documentation automatically generated with Doxygen on 10 Sep 2004.