10.12., 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit f4017e6d authored by leo.rannabauer's avatar leo.rannabauer

updated signatures for boundaryValues and riemannsolver

parent ee02650d
......@@ -115,8 +115,7 @@ void SWE::MySWESolver::flux(const double* const Q,double** const F) {
g[3] = 0.0;
}
double SWE::MySWESolver::riemannSolver(double* const fL, double* const fR, const double* const qL, const double* const qR, int direction) {
double SWE::MySWESolver::riemannSolver(double* fL, double *fR, const double* qL, const double* qR, const double* gradQL, const double* gradQR, const double* cellSize, int direction){
double LL[NumberOfVariables] = {0.0};
double LR[NumberOfVariables] = {0.0};
......
......@@ -72,7 +72,8 @@ class SWE::MySWESolver : public SWE::AbstractMySWESolver {
* \param[inout] QOut the conserved variables at point x from outside of the domain
* and time-averaged (over [t,t+dt]) as C array (already allocated).
*/
void boundaryValues(const double* const x,const double t,const double dt,const int faceIndex,const int normalNonZero,const double* const fluxIn,const double* const stateIn,const double* const gradStateIn,double* const fluxOut,double* const stateOut) override;
void boundaryValues(const double* const x,const double t,const double dt,const int faceIndex,const int direction,const double* const stateIn,double* const stateOut) override;
/**
* Compute the flux tensor.
......@@ -83,7 +84,9 @@ class SWE::MySWESolver : public SWE::AbstractMySWESolver {
*/
void flux(const double* const Q,double** const F) override;
double riemannSolver(double* const FL,double* const FR,const double* const QL,const double* const QR,const double t,const double dt, const tarch::la::Vector<DIMENSIONS, double>& lengthScale,const int direction, bool isBoundaryFace, int faceIndex) override;
double riemannSolver(double* fL, double *fR, const double* qL, const double* qR, const double* gradQL, const double* gradQR, const double* cellSize, int direction) override;
//double riemannSolver(double* const FL,double* const FR,const double* const QL,const double* const QR,const double t,const double dt, const tarch::la::Vector<DIMENSIONS, double>& lengthScale,const int direction, bool isBoundaryFace, int faceIndex) override;
/* algebraicSource() function not included, as requested by the specification file */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment