3#ifndef DUNE_PYRAMID_P2_LOCALINTERPOLATION_HH
4#define DUNE_PYRAMID_P2_LOCALINTERPOLATION_HH
11 class PyramidP2LocalInterpolation
16 template<
typename F,
typename C>
17 void interpolate (
const F& f, std::vector<C>& out)
const
19 typename LB::Traits::RangeType y;
22 typename LB::Traits::DomainType x;
24 x[0] = 0.0; x[1] = 0.0; x[2] = 0.0;
25 f.evaluate(x,y); out[0] = y;
27 x[0] = 1.0; x[1] = 0.0; x[2] = 0.0;
28 f.evaluate(x,y); out[1] = y;
30 x[0] = 0.0; x[1] = 1.0; x[2] = 0.0;
31 f.evaluate(x,y); out[2] = y;
33 x[0] = 1.0; x[1] = 1.0; x[2] = 0.0;
34 f.evaluate(x,y); out[3] = y;
36 x[0] = 0.0; x[1] = 0.0; x[2] = 1.0;
37 f.evaluate(x,y); out[4] = y;
39 x[0] = 0.0; x[1] = 0.5; x[2] = 0.0;
40 f.evaluate(x,y); out[5] = y;
42 x[0] = 1.0; x[1] = 0.5; x[2] = 0.0;
43 f.evaluate(x,y); out[6] = y;
45 x[0] = 0.5; x[1] = 0.0; x[2] = 0.0;
46 f.evaluate(x,y); out[7] = y;
48 x[0] = 0.5; x[1] = 1.0; x[2] = 0.0;
49 f.evaluate(x,y); out[8] = y;
51 x[0] = 0.0; x[1] = 0.0; x[2] = 0.5;
52 f.evaluate(x,y); out[9] = y;
54 x[0] = 0.5; x[1] = 0.0; x[2] = 0.5;
55 f.evaluate(x,y); out[10] = y;
57 x[0] = 0.0; x[1] = 0.5; x[2] = 0.5;
58 f.evaluate(x,y); out[11] = y;
60 x[0] = 0.5; x[1] = 0.5; x[2] = 0.5;
61 f.evaluate(x,y); out[12] = y;
63 x[0] = 0.5; x[1] = 0.5; x[2] = 0.0;
64 f.evaluate(x,y); out[13] = y;
Dune namespace.
Definition: alignedallocator.hh:10