#include <Qspectral_elements.h>
◆ OneDLegendreDShapeParam()
oomph::OneDLegendreDShapeParam::OneDLegendreDShapeParam |
( |
const unsigned & |
order, |
|
|
const double & |
s |
|
) |
| |
|
inline |
100 unsigned p = order - 1;
104 for (
unsigned i = 0;
i < order;
i++)
106 unsigned rootnum = 0;
107 for (
unsigned j = 0;
j < order;
j++)
118 if (
i == rootnum &&
i == 0)
120 (*this)[
i] = -(1.0 +
p) *
p / 4.0;
122 else if (
i == rootnum &&
i ==
p)
124 (*this)[
i] = (1.0 +
p) *
p / 4.0;
126 else if (
i == rootnum)
int i
Definition: BiCGSTAB_step_by_step.cpp:9
float * p
Definition: Tutorial_Map_using.cpp:9
static std::map< unsigned, Vector< double > > z
Definition: Qspectral_elements.h:48
Shape()
Definition: shape.h:137
RealScalar s
Definition: level1_cplx_impl.h:130
Real fabs(const Real &a)
Definition: boostmultiprec.cpp:117
double dlegendre(const unsigned &p, const double &x)
Definition: orthpoly.h:121
const double eps
Definition: orthpoly.h:52
double ddlegendre(const unsigned &p, const double &x)
Definition: orthpoly.h:144
double legendre(const unsigned &p, const double &x)
Definition: orthpoly.h:57
std::ptrdiff_t j
Definition: tut_arithmetic_redux_minmax.cpp:2
References oomph::Orthpoly::ddlegendre(), oomph::Orthpoly::dlegendre(), oomph::Orthpoly::eps, boost::multiprecision::fabs(), i, j, oomph::Orthpoly::legendre(), p, s, and oomph::OneDLegendreShapeParam::z.
The documentation for this class was generated from the following file: