86 const Array<
OneD,
const Array<OneD, NekDouble> > &Fwd,
87 const Array<
OneD,
const Array<OneD, NekDouble> > &Bwd,
88 Array<
OneD, Array<OneD, NekDouble> > &flux)
91 const Array<OneD, NekDouble> &traceVel =
m_scalars[
"Vn"]();
93 for (
int j = 0; j < traceVel.num_elements(); ++j)
95 const Array<OneD, const Array<OneD, NekDouble> > &tmp =
96 traceVel[j] >= 0 ? Fwd : Bwd;
97 for (
int i = 0; i < Fwd.num_elements(); ++i)
99 flux[i][j] = tmp[i][j];