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

TriangleVertexQuadrature.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 __TRIANGLE_VERTEX_QUADRATURE_H
00005 #define __TRIANGLE_VERTEX_QUADRATURE_H
00006 
00007 #include <dolfin/Quadrature.h>
00008 
00009 namespace dolfin {
00010 
00012   class TriangleVertexQuadrature : public Quadrature {
00013   public:
00014     
00015     TriangleVertexQuadrature() : Quadrature(3) {
00016       
00017       // Area of triangle
00018       m = 0.5;
00019       
00020       // Quadrature points
00021       points[0] = Point(0.0, 0.0);
00022       points[1] = Point(1.0, 0.0);
00023       points[2] = Point(0.0, 1.0);
00024       
00025       // Quadrature weights
00026       weights[0] = m / 3.0;
00027       weights[1] = m / 3.0;
00028       weights[2] = m / 3.0;
00029       
00030     }
00031 
00032     void show() const {};
00033     
00034   };
00035   
00036 }
00037 
00038 #endif


Documentation automatically generated with Doxygen on 10 Sep 2004.