Mentions légales du service

Skip to content
Snippets Groups Projects
Commit 820462de authored by Olivier COULAUD's avatar Olivier COULAUD
Browse files

Fix problem with convergence criteria - now the test is ok.

parent 4a59677b
No related branches found
No related tags found
No related merge requests found
......@@ -166,8 +166,10 @@ class TestSphericalDirect : public FUTester<TestSphericalDirect> {
printf(" Energy DIRECT = %.12e\n",FMath::Abs(energyD));
// Assert
const FReal MaximumDiffPotential = FReal(9e-3);
const FReal MaximumDiffForces = FReal(9e-2);
double epsilon = 1.0/FMath::pow2(ORDER);
const FReal MaximumDiffPotential = FReal(epsilon);
const FReal MaximumDiffForces = FReal(10*epsilon);
printf(" Criteria error - Epsilon %e\n",epsilon);
Print("Test1 - Error Relative L2 norm Potential ");
uassert(potentialDiff.getRelativeL2Norm() < MaximumDiffPotential); //1
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment