Skip to content
Snippets Groups Projects
Commit d14c50e4 authored by Emilie Marchandise's avatar Emilie Marchandise
Browse files

No commit message

No commit message
parent 24657044
No related branches found
No related tags found
No related merge requests found
......@@ -17,6 +17,20 @@ bool dgSlopeLimiter::apply ( dgDofContainer &solution,
int nbFields = solution.getNbFields();
int totNbElems = solution.getNbElements();
//--- CLIPPING: check unphysical values
// double fmin = 1.e-10;
// for (int iElement=0;iElement<totNbElems;iElement++){
// fullMatrix<double> solElem;
// solElem.setAsProxy(SolRight, nbFields*iElement, nbFields );
// for (int k=0;k< solElem.size1() ;k++){
// if (solElem(k,0) < fmin) {
// printf("ARGG negative density \n");
// solElem(k,0) = fmin;
// }
// }
// }
// first compute max and min of all fields for all stencils
//----------------------------------------------------------
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment