TVD and NVD scheme clean-up, based on work by Oliver Borm

This commit is contained in:
Hrvoje Jasak 2011-02-08 20:42:35 +00:00
parent 43dc3add2e
commit 4a271dbf06
2 changed files with 3 additions and 3 deletions

View file

@ -83,7 +83,7 @@ public:
} }
// Stabilise for division // Stabilise for division
gradcf = stabilise(gradcf, VSMALL); gradcf = stabilise(gradcf, SMALL);
return 1 - 0.5*gradf/gradcf; return 1 - 0.5*gradf/gradcf;
} }

View file

@ -83,7 +83,7 @@ public:
} }
// Stabilise for division // Stabilise for division
gradcf = stabilise(gradcf, VSMALL); gradcf = stabilise(gradcf, SMALL);
return 1 - 0.5*gradf/gradcf; return 1 - 0.5*gradf/gradcf;
} }
@ -114,7 +114,7 @@ public:
} }
// Stabilise for division // Stabilise for division
//Changed to SMALL to prevent FPE. OB, 14/Jan/2011 // Changed to SMALL to prevent FPE. OB, 14/Jan/2011
gradf = stabilise(gradf, SMALL); gradf = stabilise(gradf, SMALL);
// New formulation. Oliver Borm and Aleks Jemcov // New formulation. Oliver Borm and Aleks Jemcov