93 for (
int j = 0; j < traceVel.num_elements(); ++j)
96 traceVel[j] >= 0 ? Fwd : Bwd;
97 for (
int i = 0; i < Fwd.num_elements(); ++i)
99 flux[i][j] = traceVel[j]*tmp[i][j];
SOLVER_UTILS_EXPORT bool CheckScalars(std::string name)
Determine whether a scalar has been defined in m_scalars.
static SOLVER_UTILS_EXPORT RiemannSolverSharedPtr create()
std::map< std::string, RSScalarFuncType > m_scalars
Map of scalar function types.
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)
Implementation of the upwind solver.
RiemannSolverFactory & GetRiemannSolverFactory()
static std::string solverName
The RiemannSolver class provides an abstract interface under which solvers for various Riemann proble...
UpwindSolver()
Default constructor.
#define ASSERTL1(condition, msg)
Assert Level 1 – Debugging which is used whether in FULLDEBUG or DEBUG compilation mode...