49 const Array<
OneD,
const Array<OneD, NekDouble> > &Fwd,
50 const Array<
OneD,
const Array<OneD, NekDouble> > &Bwd,
51 Array<
OneD, Array<OneD, NekDouble> > &flux)
55 const Array<OneD, NekDouble> &dFwd =
m_scalars[
"depthFwd"]();
56 const Array<OneD, NekDouble> &dBwd =
m_scalars[
"depthBwd"]();
62 int expDim = Fwd.num_elements()-1;
67 for (
int i = 0; i < Fwd[0].num_elements(); ++i)
70 Fwd [0][i], Fwd [1][i], 0.0, dFwd[i],
71 Bwd [0][i], Bwd [1][i], 0.0, dBwd[i],
72 flux[0][i], flux[1][i], vf);
77 for (
int i = 0; i < Fwd[0].num_elements(); ++i)
80 Fwd [0][i], Fwd [1][i], Fwd [2][i], dFwd[i],
81 Bwd [0][i], Bwd [1][i], Bwd [2][i], dBwd[i],
82 flux[0][i], flux[1][i], flux[2][i]);
87 ASSERTL0(
false,
"No 3D Shallow water supported.");