Skip to content

Commit

Permalink
Adjust tolerances for different platforms.
Browse files Browse the repository at this point in the history
  • Loading branch information
tupek2 committed Aug 6, 2024
1 parent ee2628f commit be13b16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/serac/physics/tests/quasistatic_solid_adjoint.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ TEST(quasistatic, finiteDifference)
seracSolid->setParameter(1, vstate);
double fmv = forwardPass(seracSolid.get(), qoi.get(), meshPtr, nTimeSteps, timeStep, "fmv");

ASSERT_NEAR(Ederiv, (fpE - fmE) / (2. * h), 1e-8);
ASSERT_NEAR(vderiv, (fpv - fmv) / (2. * h), 1e-8);
ASSERT_NEAR(Ederiv, (fpE - fmE) / (2. * h), 1e-7);
ASSERT_NEAR(vderiv, (fpv - fmv) / (2. * h), 1e-7);
}

} // namespace serac
Expand Down

0 comments on commit be13b16

Please sign in to comment.