35 #include <boost/core/ignore_unused.hpp> 54 boost::ignore_unused(nDim);
58 int expDim = Fwd.num_elements()-1;
63 for (
int i = 0; i < Fwd[0].num_elements(); ++i)
66 Fwd [0][i], Fwd [1][i], 0.0,
67 Bwd [0][i], Bwd [1][i], 0.0,
68 flux[0][i], flux[1][i], hvf);
73 for (
int i = 0; i < Fwd[0].num_elements(); ++i)
76 Fwd [0][i], Fwd [1][i], Fwd [2][i],
77 Bwd [0][i], Bwd [1][i], Bwd [2][i],
78 flux[0][i], flux[1][i], flux[2][i]);
83 ASSERTL0(
false,
"No 3D Shallow water supported.");
virtual void v_ArraySolve(const Array< OneD, const Array< OneD, NekDouble > > &Fwd, const Array< OneD, const Array< OneD, NekDouble > > &Bwd, Array< OneD, Array< OneD, NekDouble > > &flux)
#define ASSERTL0(condition, msg)
virtual void v_Solve(const int nDim, const Array< OneD, const Array< OneD, NekDouble > > &Fwd, const Array< OneD, const Array< OneD, NekDouble > > &Bwd, Array< OneD, Array< OneD, NekDouble > > &flux)
virtual void v_PointSolve(NekDouble hL, NekDouble huL, NekDouble hvL, NekDouble hR, NekDouble huR, NekDouble hvR, NekDouble &hf, NekDouble &huf, NekDouble &hvf)
NonlinearSWESolver(const LibUtilities::SessionReaderSharedPtr &pSession)
bool m_requiresRotation
Indicates whether the Riemann solver requires a rotation to be applied to the velocity fields...
The RiemannSolver class provides an abstract interface under which solvers for various Riemann proble...
std::shared_ptr< SessionReader > SessionReaderSharedPtr