FEAT 3
Finite Element Analysis Toolbox
Loading...
Searching...
No Matches
midpoint_driver.hpp
1// FEAT3: Finite Element Analysis Toolbox, Version 3
2// Copyright (C) 2010 by Stefan Turek & the FEAT group
3// FEAT3 is released under the GNU General Public License version 3,
4// see the file 'copyright.txt' in the top level directory for details.
5
6#pragma once
7
8// includes, FEAT
9#include <kernel/cubature/scalar/driver_base.hpp>
10
11namespace FEAT
12{
13 namespace Cubature
14 {
15 namespace Scalar
16 {
25 public DriverBase
26 {
27 public:
29 static constexpr bool variadic = false;
31 static constexpr bool tensorize = false;
33 static constexpr int num_points = 1;
34
36 static String name()
37 {
38 return "midpoint";
39 }
40
47 template<
48 typename Weight_,
49 typename Coord_>
50 static void fill(Rule<Weight_, Coord_>& rule)
51 {
52 rule.get_coord(0) = Coord_(0);
53 rule.get_weight(0) = Weight_(2);
54 }
55 }; // class MidpointDriver<...>
56 } // namespace Scalar
57 } // namespace Cubature
58} // namespace FEAT
Scalar cubature driver base class.
Definition: driver_base.hpp:23
Midpoint Rule driver class template.
static constexpr bool variadic
this rule is not variadic
static constexpr int num_points
this rule has 1 point
static String name()
Returns the name of the cubature rule.
static void fill(Rule< Weight_, Coord_ > &rule)
Fills the cubature rule structure.
static constexpr bool tensorize
disable tensorization
Scalar Cubature Rule class template.
Definition: rule.hpp:39
String class implementation.
Definition: string.hpp:46
FEAT namespace.
Definition: adjactor.hpp:12