Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | File List | Namespace Members | Class Members | File Members

GaussianQuadrature.h

Go to the documentation of this file.
00001 // Copyright (C) 2003 Johan Hoffman and Anders Logg.
00002 // Licensed under the GNU GPL Version 2.
00003 
00004 #ifndef __GAUSSIAN_QUADRATURE_H
00005 #define __GAUSSIAN_QUADRATURE_H
00006 
00007 #include <dolfin/Quadrature.h>
00008 
00009 namespace dolfin {
00010   
00017 
00018   class GaussianQuadrature : public Quadrature {
00019   public:
00020     
00021     GaussianQuadrature(unsigned int n);
00022     
00023   protected:
00024     
00025     // Compute points and weights
00026     void init();
00027 
00028     // Compute quadrature points
00029     virtual void computePoints() = 0;
00030 
00031     // Compute quadrature weights
00032     void computeWeights();
00033 
00034     // Check that quadrature is exact for given degree q
00035     bool check(unsigned int q) const;
00036 
00038     virtual void show() const = 0;
00039     
00040   };
00041   
00042 }
00043 
00044 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.