68 size_t nDim = pFields[0]->GetCoordim(0);
69 size_t nVariable = pFields.size();
70 size_t nTracePts = pFields[0]->GetTrace()->GetTotPoints();
73 for (
int i = 0; i < nDim; ++i)
79 for (
int i = 0; i < nVariable; ++i)
94 pFields[0]->GetTrace()->GetElmtNormalLength(lengthFwd, lengthBwd);
98 pFields[0]->GetTraceMap()->GetAssemblyCommDG()->PerformExchange(lengthFwd,
102 pFields[0]->PeriodicBwdCopy(lengthFwd, lengthBwd);
110 for (
int i = 0; i < nTracePts; ++i)
115 lengthBwd[i] = lengthFwd[i];
122 Vmath::Vadd(nTracePts, lengthBwd, 1, lengthFwd, 1, lengthsum, 1);
123 Vmath::Vmul(nTracePts, lengthBwd, 1, lengthFwd, 1, lengthmul, 1);
124 Vmath::Vdiv(nTracePts, lengthsum, 1, lengthmul, 1, lengthFwd, 1);
135 for (
int i = 1; i < nVariable; ++i)
137 pFields[i]->GetBwdWeight(tmpBwdWeight, tmpBwdWeightJump);
140 Vmath::Vabs(nTracePts, tmpBwdWeight, 1, tmpBwdWeight, 1);
142 for (
int j = 0; j < nTracePts; ++j)
144 norm += tmpBwdWeight[j];
147 "different BWD for different variable not coded yet");
151 size_t nCoeffs = pFields[0]->GetNcoeffs();
153 for (
int i = 0; i < nVariable; ++i)
161 for (
int nd = 0; nd < nDim; ++nd)
165 for (
int i = 0; i < nVariable; ++i)
174 const size_t nConvectiveFields,
186 for (
int i = 0; i < nConvectiveFields; ++i)
188 fields[i]->BwdTrans(
m_wspDiff[i], outarray[i]);
195 const size_t nConvectiveFields,
202 if (fields[0]->GetGraph()->GetMovement()->GetMoveFlag())
211 size_t nDim = fields[0]->GetCoordim(0);
212 size_t nPts = fields[0]->GetTotPoints();
213 size_t nCoeffs = fields[0]->GetNcoeffs();
214 size_t nTracePts = fields[0]->GetTrace()->GetTotPoints();
222 for (
int j = 0; j < nDim; ++j)
226 for (
int i = 0; i < nConvectiveFields; ++i)
230 for (
int i = 0; i < nConvectiveFields; ++i)
242 for (
int i = 0; i < nConvectiveFields; ++i)
247 for (
int i = 0; i < nConvectiveFields; ++i)
249 fields[i]->GetFwdBwdTracePhys(inarray[i], vFwd[i], vBwd[i]);
254 for (
int i = 0; i < nConvectiveFields; ++i)
271 for (
int i = 0; i < nonZeroIndex.size(); ++i)
273 int j = nonZeroIndex[i];
274 for (
int k = 0; k < nDim; ++k)
276 tmpFluxIprdct[k] = elmtFlux[k][j];
278 fields[j]->IProductWRTDerivBase(tmpFluxIprdct, outarray[j]);
286 for (
int j = 0; j < nDim; ++j)
293 for (
int j = 0; j < nConvectiveFields; ++j)
303 for (
int i = 0; i < nonZeroIndex.size(); ++i)
305 int j = nonZeroIndex[i];
307 fields[j]->AddTraceIntegral(Traceflux[j], outarray[j]);
308 fields[j]->SetPhysState(
false);
312 elmtFlux, outarray, vFwd, vBwd);
316 if (!fields[0]->GetGraph()->GetMovement()->GetMoveFlag() ||
320 ->GetImplicitALESolverFlag())
323 for (
int i = 0; i < nonZeroIndex.size(); ++i)
325 int j = nonZeroIndex[i];
327 fields[j]->MultiplyByElmtInvMass(outarray[j], outarray[j]);
343 size_t nDim = fields[0]->GetCoordim(0);
344 for (
int nd = 0; nd < 3; ++nd)
349 size_t nConvectiveFields = inarray.size();
350 for (
int i = 0; i < nConvectiveFields; ++i)
352 for (
int nd = 0; nd < nDim; ++nd)
354 qtmp[nd] = qfield[nd][i];
356 fields[i]->PhysDeriv(inarray[i], qtmp[0], qtmp[1], qtmp[2]);
366 size_t nDim = fields[0]->GetCoordim(0);
389 traceflux3D[0] = TraceFlux;
391 size_t nConvectiveFields = fields.size();
403 const std::size_t nConvectiveFields,
413 size_t nDim = fields[0]->GetCoordim(0);
414 size_t nPts = fields[0]->GetTotPoints();
415 size_t nTracePts = fields[0]->GetTrace()->GetTotPoints();
417 for (
int nd = 0; nd < nDim; ++nd)
421 for (
int j = 0; j < nConvectiveFields; ++j)
428 VolumeFlux, traceSymflux, pFwd, pBwd,
432 fields, nonZeroIndex, traceSymflux,
438 const std::size_t nConvectiveFields,
448 size_t nDim = fields[0]->GetCoordim(0);
449 size_t nPts = fields[0]->GetTotPoints();
450 size_t nTracePts = fields[0]->GetTrace()->GetTotPoints();
452 for (
int nd = 0; nd < nDim; ++nd)
456 for (
int j = 0; j < nConvectiveFields; ++j)
463 VolumeFlux, traceSymflux, pFwd, pBwd,
467 fields, nonZeroIndex, traceSymflux, outarray);
472 const std::size_t nConvectiveFields,
482 size_t nDim = fields[0]->GetCoordim(0);
485 nonZeroIndex, SymmFlux);
489 const std::size_t nConvectiveFields,
const size_t nDim,
495 size_t nTracePts = solution_jump[nConvectiveFields - 1].size();
500 for (
int nd = 0; nd < nDim; ++nd)
502 for (
int j = 0; j < nonZeroIndexsymm.size(); ++j)
504 int i = nonZeroIndexsymm[j];
506 traceSymflux[nd][i], 1, traceSymflux[nd][i], 1);
512 const std::size_t nConvectiveFields,
const size_t nDim,
const size_t nPts,
513 [[maybe_unused]]
const size_t nTracePts,
519 size_t nCoeffs = outarray[nConvectiveFields - 1].size();
522 for (
int i = 0; i < nDim; ++i)
527 for (
int j = 0; j < nonZeroIndex.size(); ++j)
529 nv = nonZeroIndex[j];
531 for (
int nd = 0; nd < nDim; ++nd)
535 tracelist->MultiplyByQuadratureMetric(tracflux[nd][nv],
538 fields[nv]->AddTraceQuadPhysToField(tracflux[nd][nv],
539 tracflux[nd][nv], tmpfield[nd]);
540 fields[nv]->DivideByQuadratureMetric(tmpfield[nd], tmpfield[nd]);
542 fields[nv]->IProductWRTDerivBase(tmpfield, tmpCoeff);
543 Vmath::Vadd(nCoeffs, tmpCoeff, 1, outarray[nv], 1, outarray[nv], 1);
548 const std::size_t nConvectiveFields,
const size_t nDim,
const size_t nPts,
549 [[maybe_unused]]
const size_t nTracePts,
555 size_t nCoeffs = outarray[nConvectiveFields - 1].size();
559 for (
int i = 0; i < nDim; ++i)
563 for (
int j = 0; j < nonZeroIndex.size(); ++j)
565 int nv = nonZeroIndex[j];
566 for (
int nd = 0; nd < nDim; ++nd)
570 fields[nv]->AddTraceQuadPhysToField(tracflux[nd][nv],
571 tracflux[nd][nv], tmpfield[nd]);
572 fields[nv]->DivideByQuadratureMetric(tmpfield[nd], tmpfield[nd]);
574 fields[nv]->IProductWRTDerivBase(tmpfield, tmpCoeff);
575 fields[nv]->BwdTrans(tmpCoeff, tmpPhysi);
576 Vmath::Vadd(nPts, tmpPhysi, 1, outarray[nv], 1, outarray[nv], 1);
585 std::shared_ptr<LocalRegions::ExpansionVector> traceExp =
587 size_t ntotTrac = (*traceExp).size();
588 int nTracPnt, noffset;
591 fields[0]->GetLocTraceToTraceMap();
594 locTraceToTraceMap->GetLeftRightAdjacentExpId();
596 locTraceToTraceMap->GetLeftRightAdjacentExpFlag();
598 std::shared_ptr<LocalRegions::ExpansionVector> fieldExp =
607 for (
int ntrace = 0; ntrace < ntotTrac; ++ntrace)
609 noffset = tracelist->GetPhys_Offset(ntrace);
610 nTracPnt = tracelist->GetTotPoints(ntrace);
612 factorFwdBwd[0] = 0.0;
613 factorFwdBwd[1] = 0.0;
615 for (
int nlr = 0; nlr < 2; ++nlr)
617 if (LRAdjflag[nlr][ntrace])
620 for (
int nd = 0; nd < spaceDim; nd++)
623 ->GetExp(LRAdjExpid[nlr][ntrace])
624 ->GetBasisNumModes(nd);
625 numModes = std::max(ntmp, numModes);
627 factorFwdBwd[nlr] = (numModes) * (numModes);
631 for (
int np = 0; np < nTracPnt; ++np)
633 factor[noffset + np] = std::max(factorFwdBwd[0], factorFwdBwd[1]);
639 const std::size_t nConvectiveFields,
const size_t nPts,
645 std::vector<NekDouble> vFwdTmp(nConvectiveFields),
646 vBwdTmp(nConvectiveFields), averTmp(nConvectiveFields);
647 for (
size_t p = 0;
p < nPts; ++
p)
650 for (
size_t f = 0; f < nConvectiveFields; ++f)
652 vFwdTmp[f] = vFwd[f][
p];
653 vBwdTmp[f] = vBwd[f][
p];
660 for (
size_t f = 0; f < nConvectiveFields; ++f)
662 aver[f][
p] = averTmp[f];
673 for (
size_t f = 0; f < nConvectiveFields; ++f)
675 for (
size_t p = 0;
p < nPts; ++
p)
682 jump[f][
p] = tmpF * Fweight + tmpB * Bweight;
698 size_t nDim = fields[0]->GetCoordim(0);
699 size_t nPts = fields[0]->GetTotPoints();
700 size_t nTracePts = fields[0]->GetTrace()->GetTotPoints();
701 size_t nConvectiveFields = fields.size();
704 fields[0]->GetTraceMap();
706 fields[0]->GetInterfaceMap();
711 for (
int nd = 0; nd < nDim; ++nd)
713 for (
int i = 0; i < nConvectiveFields; ++i)
728 if (fabs(PenaltyFactor2) > 1.0E-12)
738 for (
int nd = 0; nd < nDim; ++nd)
740 for (
int i = 0; i < nConvectiveFields; ++i)
746 fields[i]->GetFwdBwdTracePhys(qfield[nd][i], Fwd, Bwd,
true,
true,
751 for (
size_t p = 0;
p < nTracePts; ++
p)
758 TraceMap->GetAssemblyCommDG()->PerformExchange(
771 ConsVarAveJump(nConvectiveFields, nTracePts, vFwd, vBwd, solution_Aver,
778 for (
size_t p = 0;
p < nTracePts; ++
p)
783 for (
size_t f = 0; f < nConvectiveFields; ++f)
785 NekDouble jumpTmp = solution_jump[f][
p] * PenaltyFactor;
786 for (
size_t d = 0;
d < nDim; ++
d)
798 traceflux, nonZeroIndexflux,
805 const std::size_t nConvectiveFields,
const size_t nDim,
const size_t nPts,
806 const size_t nTracePts,
const NekDouble PenaltyFactor2,
814 std::vector<NekDouble> tmp(nTracePts);
817 for (
int nd1 = 0; nd1 < nDim; ++nd1)
823 for (
int nd = 0; nd < 3; ++nd)
827 for (
int nd2 = 0; nd2 < nDim; ++nd2)
829 qtmp[nd2] = elmt2ndDerv[nd2];
832 for (
int i = 0; i < nTracePts; ++i)
837 for (
int nd1 = 0; nd1 < nDim; ++nd1)
839 for (
int i = 0; i < nConvectiveFields; ++i)
841 fields[i]->PhysDeriv(qfield[nd1][i], qtmp[0], qtmp[1], qtmp[2]);
843 for (
int nd2 = nd1; nd2 < nDim; ++nd2)
846 fields[i]->GetFwdBwdTracePhys(elmt2ndDerv[nd2], Fwd, Bwd,
true,
848 for (
int p = 0;
p < nTracePts; ++
p)
854 numDerivFwd[nd1][i][
p]);
858 for (
int p = 0;
p < nTracePts; ++
p)
860 numDerivBwd[nd2][i][
p] +=
862 numDerivFwd[nd2][i][
p] =
864 numDerivFwd[nd2][i][
p]);
878 const int nConvectiveFields,
882 int nengy = nConvectiveFields - 1;
886 size_t nBndRegions = fields[nengy]->GetBndCondExpansions().size();
887 for (
size_t j = 0; j < nBndRegions; ++j)
889 if (fields[nengy]->GetBndConditions()[j]->GetBoundaryConditionType() ==
896 fields[nengy]->GetBndCondExpansions()[j]->GetExpSize();
897 for (
size_t e = 0; e < nBndEdges; ++e)
899 size_t nBndEdgePts = fields[nengy]
900 ->GetBndCondExpansions()[j]
904 std::size_t id2 = fields[0]->GetTrace()->GetPhys_Offset(
905 fields[0]->GetTraceMap()->GetBndCondIDToGlobalTraceID(cnt++));
907 if (fields[0]->GetBndConditions()[j]->GetUserDefined() ==
#define ASSERTL0(condition, msg)
tKey RegisterCreatorFunction(tKey idKey, CreatorFunction classCreator, std::string pDesc="")
Register a class with the factory.
void AccumulateRegion(std::string, int iolevel=0)
Accumulate elapsed time for a region.
SOLVER_UTILS_EXPORT void DiffuseCalcDerivative(const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfields, const Array< OneD, Array< OneD, NekDouble > > &pFwd=NullNekDoubleArrayOfArray, const Array< OneD, Array< OneD, NekDouble > > &pBwd=NullNekDoubleArrayOfArray)
DiffusionFluxCons m_FunctorDiffusionfluxConsTrace
SOLVER_UTILS_EXPORT void DiffuseVolumeFlux(const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfields, TensorOfArray3D< NekDouble > &VolumeFlux, Array< OneD, int > &nonZeroIndex=NullInt1DArray)
Diffusion Volume FLux.
SOLVER_UTILS_EXPORT void DiffuseTraceFlux(const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfields, TensorOfArray3D< NekDouble > &VolumeFlux, Array< OneD, Array< OneD, NekDouble > > &TraceFlux, const Array< OneD, Array< OneD, NekDouble > > &pFwd=NullNekDoubleArrayOfArray, const Array< OneD, Array< OneD, NekDouble > > &pBwd=NullNekDoubleArrayOfArray, Array< OneD, int > &nonZeroIndex=NullInt1DArray)
Diffusion term Trace Flux.
DiffusionFluxCons m_FunctorDiffusionfluxCons
SpecialBndTreat m_SpecialBndTreat
DiffusionSymmFluxCons m_FunctorSymmetricfluxCons
Array< OneD, NekDouble > m_traceNormDirctnElmtLengthRecip
void v_DiffuseCoeffs(const std::size_t nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const Array< OneD, Array< OneD, NekDouble > > &pFwd, const Array< OneD, Array< OneD, NekDouble > > &pBwd) override
static DiffusionSharedPtr create(std::string diffType)
Array< OneD, NekDouble > m_tracBwdWeightAver
Array< OneD, NekDouble > m_traceNormDirctnElmtLength
void ApplyFluxBndConds(const int nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, Array< OneD, Array< OneD, NekDouble > > &flux)
aplly Neuman boundary conditions on flux Currently only consider WallAdiabatic
void GetPenaltyFactor(const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, Array< OneD, NekDouble > &factor)
Get IP penalty factor based on order.
void ConsVarAve(const size_t nConvectiveFields, const T &Bweight, const std::vector< T > &vFwd, const std::vector< T > &vBwd, std::vector< T > &aver)
Calculate the average of conservative variables on traces.
void AddSecondDerivToTrace(const std::size_t nConvectiveFields, const size_t nDim, const size_t nPts, const size_t nTracePts, const NekDouble PenaltyFactor2, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const TensorOfArray3D< NekDouble > &qfield, TensorOfArray3D< NekDouble > &numDerivFwd, TensorOfArray3D< NekDouble > &numDerivBwd)
Add second derivative term to trace jump (for DDG scheme)
void CalcTraceNumFlux(const NekDouble PenaltyFactor2, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, const TensorOfArray3D< NekDouble > &qfield, const Array< OneD, Array< OneD, NekDouble > > &vFwd, const Array< OneD, Array< OneD, NekDouble > > &vBwd, Array< OneD, int > &nonZeroIndexflux, TensorOfArray3D< NekDouble > &traceflux, Array< OneD, Array< OneD, NekDouble > > &solution_Aver, Array< OneD, Array< OneD, NekDouble > > &solution_jump)
Calculate numerical flux on traces.
NekDouble m_IPSymmFluxCoeff
NekDouble m_IP2ndDervCoeff
NekDouble m_IPPenaltyCoeff
void v_DiffuseCalcDerivative(const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfield, const Array< OneD, Array< OneD, NekDouble > > &pFwd, const Array< OneD, Array< OneD, NekDouble > > &pBwd) override
Diffusion Flux, calculate the physical derivatives.
void AddDiffusionSymmFluxToPhys(const std::size_t nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfield, TensorOfArray3D< NekDouble > &VolumeFlux, Array< OneD, Array< OneD, NekDouble > > &outarray, const Array< OneD, Array< OneD, NekDouble > > &pFwd, const Array< OneD, Array< OneD, NekDouble > > &pBwd)
Array< OneD, Array< OneD, NekDouble > > m_traceJump
void AddSymmFluxIntegralToCoeff(const std::size_t nConvectiveFields, const size_t nDim, const size_t nPts, const size_t nTracePts, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, const int > &nonZeroIndex, TensorOfArray3D< NekDouble > &tracflux, Array< OneD, Array< OneD, NekDouble > > &outarray)
Add symmetric flux integration to field (in coefficient space)
TensorOfArray3D< NekDouble > m_wspNumDerivBwd
Workspace for CallTraceNumFlux.
TensorOfArray3D< NekDouble > m_wspNumDerivFwd
LibUtilities::SessionReaderSharedPtr m_session
Array< OneD, Array< OneD, NekDouble > > m_traceAver
Array< OneD, NekDouble > m_tracBwdWeightJump
void v_Diffuse(const std::size_t nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, Array< OneD, Array< OneD, NekDouble > > &outarray, const Array< OneD, Array< OneD, NekDouble > > &pFwd, const Array< OneD, Array< OneD, NekDouble > > &pBwd) override
void ConsVarAveJump(const std::size_t nConvectiveFields, const size_t npnts, const Array< OneD, const Array< OneD, NekDouble > > &vFwd, const Array< OneD, const Array< OneD, NekDouble > > &vBwd, Array< OneD, Array< OneD, NekDouble > > &aver, Array< OneD, Array< OneD, NekDouble > > &jump)
void v_InitObject(LibUtilities::SessionReaderSharedPtr pSession, Array< OneD, MultiRegions::ExpListSharedPtr > pFields) override
void v_DiffuseVolumeFlux(const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfields, TensorOfArray3D< NekDouble > &VolumeFlux, Array< OneD, int > &nonZeroIndex) override
Diffusion Volume Flux.
void AddDiffusionSymmFluxToCoeff(const std::size_t nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfield, TensorOfArray3D< NekDouble > &VolumeFlux, Array< OneD, Array< OneD, NekDouble > > &outarray, const Array< OneD, Array< OneD, NekDouble > > &pFwd, const Array< OneD, Array< OneD, NekDouble > > &pBwd)
void DiffuseTraceSymmFlux(const std::size_t nConvectiveFields, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfield, TensorOfArray3D< NekDouble > &VolumeFlux, TensorOfArray3D< NekDouble > &SymmFlux, const Array< OneD, Array< OneD, NekDouble > > &pFwd, const Array< OneD, Array< OneD, NekDouble > > &pBwd, Array< OneD, int > &nonZeroIndex)
Calculate symmetric flux on traces interface.
Array< OneD, Array< OneD, NekDouble > > m_wspDiff
Workspace for v_Diffusion.
Array< OneD, Array< OneD, NekDouble > > m_traceNormals
void v_DiffuseTraceFlux(const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, Array< OneD, NekDouble > > &inarray, TensorOfArray3D< NekDouble > &qfields, TensorOfArray3D< NekDouble > &VolumeFlux, Array< OneD, Array< OneD, NekDouble > > &TraceFlux, const Array< OneD, Array< OneD, NekDouble > > &pFwd, const Array< OneD, Array< OneD, NekDouble > > &pBwd, Array< OneD, int > &nonZeroIndex) override
Diffusion term Trace Flux.
void CalcTraceSymFlux(const std::size_t nConvectiveFields, const size_t nDim, const Array< OneD, Array< OneD, NekDouble > > &solution_Aver, Array< OneD, Array< OneD, NekDouble > > &solution_jump, Array< OneD, int > &nonZeroIndexsymm, Array< OneD, Array< OneD, Array< OneD, NekDouble > > > &traceSymflux)
Calculate symmetric flux on traces.
void AddSymmFluxIntegralToPhys(const std::size_t nConvectiveFields, const size_t nDim, const size_t nPts, const size_t nTracePts, const Array< OneD, MultiRegions::ExpListSharedPtr > &fields, const Array< OneD, const int > &nonZeroIndex, TensorOfArray3D< NekDouble > &tracflux, Array< OneD, Array< OneD, NekDouble > > &outarray)
Add symmetric flux integration to field (in physical space)
std::shared_ptr< SessionReader > SessionReaderSharedPtr
std::shared_ptr< AssemblyMapDG > AssemblyMapDGSharedPtr
std::shared_ptr< InterfaceMapDG > InterfaceMapDGSharedPtr
std::shared_ptr< ExpList > ExpListSharedPtr
Shared pointer to an ExpList object.
std::shared_ptr< LocTraceToTraceMap > LocTraceToTraceMapSharedPtr
static const NekDouble kNekMachineEpsilon
DiffusionFactory & GetDiffusionFactory()
std::vector< double > d(NPUPPER *NPUPPER)
static Array< OneD, Array< OneD, NekDouble > > NullNekDoubleArrayOfArray
static Array< OneD, NekDouble > NullNekDouble1DArray
void Vmul(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Multiply vector z = x*y.
void Vabs(int n, const T *x, const int incx, T *y, const int incy)
vabs: y = |x|
void Neg(int n, T *x, const int incx)
Negate x = -x.
void Vadd(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Add vector z = x+y.
void Smul(int n, const T alpha, const T *x, const int incx, T *y, const int incy)
Scalar multiply y = alpha*x.
void Vdiv(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Multiply vector z = x/y.
void Zero(int n, T *x, const int incx)
Zero vector.
void Vsub(int n, const T *x, const int incx, const T *y, const int incy, T *z, const int incz)
Subtract vector z = x-y.
scalarT< T > abs(scalarT< T > in)