44 namespace LocalRegions
48 m_metricinfo(m_geom->GetGeomFactors())
57 int nDim =
m_base.num_elements();
58 string type =
"regular";
65 err << nDim <<
"D " << type <<
" Jacobian not positive "
66 <<
"(element ID = " <<
m_geom->GetGlobalID() <<
") "
67 <<
"(first vertex ID = " <<
m_geom->GetVid(0) <<
")";
74 m_metricinfo(pSrc.m_metricinfo)
104 const boost::shared_ptr<Expansion> &EdgeExp,
105 const Array<OneD, const NekDouble> &Fx,
106 const Array<OneD, const NekDouble> &Fy,
107 Array<OneD, NekDouble> &outarray)
114 const boost::shared_ptr<Expansion> &EdgeExp,
115 const Array<OneD, const NekDouble> &Fn,
116 Array<OneD, NekDouble> &outarray)
123 const boost::shared_ptr<Expansion> &FaceExp,
124 const Array<OneD, const NekDouble> &Fn,
125 Array<OneD, NekDouble> &outarray)
132 const Array<OneD, const NekDouble>& inarray,
133 Array<OneD, ExpansionSharedPtr> &EdgeExp,
134 Array<
OneD, Array<OneD, NekDouble> > &coeffs,
135 Array<OneD, NekDouble> &outarray)
137 v_DGDeriv(dir, inarray, EdgeExp, coeffs, outarray);
166 Array<OneD, NekDouble> &outarray)
203 Array<OneD, NekDouble> &coords_0,
204 Array<OneD, NekDouble> &coords_1,
205 Array<OneD, NekDouble> &coords_2)
212 const int expDim =
m_base.num_elements();
216 Array<OneD, LibUtilities::BasisSharedPtr> CBasis(expDim);
217 Array<OneD, Array<OneD, NekDouble> > tmp(3);
219 for (
int i = 0; i < expDim; ++i)
221 CBasis[i] =
m_geom->GetBasis(i);
222 nqGeom *= CBasis[i]->GetNumPoints();
223 doCopy = doCopy &&
m_base[i]->GetBasisKey().SamePoints(
224 CBasis[i]->GetBasisKey());
233 for (
int i = 0; i <
m_geom->GetCoordim(); ++i)
235 m_geom->GetXmap()->BwdTrans(
m_geom->GetCoeffs(i), tmp[i]);
240 for (
int i = 0; i <
m_geom->GetCoordim(); ++i)
242 Array<OneD, NekDouble> tmpGeom(nqGeom);
243 m_geom->GetXmap()->BwdTrans(
m_geom->GetCoeffs(i), tmpGeom);
250 CBasis[0]->GetPointsKey(), &tmpGeom[0],
251 m_base[0]->GetPointsKey(), &tmp[i][0]);
257 CBasis[0]->GetPointsKey(),
258 CBasis[1]->GetPointsKey(),
260 m_base[0]->GetPointsKey(),
261 m_base[1]->GetPointsKey(),
268 CBasis[0]->GetPointsKey(),
269 CBasis[1]->GetPointsKey(),
270 CBasis[2]->GetPointsKey(),
272 m_base[0]->GetPointsKey(),
273 m_base[1]->GetPointsKey(),
274 m_base[2]->GetPointsKey(),
300 const boost::shared_ptr<Expansion> &EdgeExp,
301 const Array<OneD, const NekDouble> &Fx,
302 const Array<OneD, const NekDouble> &Fy,
303 Array<OneD, NekDouble> &outarray)
310 const boost::shared_ptr<Expansion> &EdgeExp,
311 const Array<OneD, const NekDouble> &Fn,
312 Array<OneD, NekDouble> &outarray)
319 const boost::shared_ptr<Expansion> &FaceExp,
320 const Array<OneD, const NekDouble> &Fn,
321 Array<OneD, NekDouble> &outarray)
328 const Array<OneD, const NekDouble>& inarray,
329 Array<OneD, ExpansionSharedPtr> &EdgeExp,
330 Array<
OneD, Array<OneD, NekDouble> > &coeffs,
331 Array<OneD, NekDouble> &outarray)