*/
#include "gmxpre.h"
+#include "gromacs/fft/fft.h"
+
#include <vector>
#include <gtest/gtest.h>
-#include "gromacs/fft/fft.h"
#include "gromacs/fft/parallel_3dfft.h"
#include "gromacs/utility/stringutil.h"
// TODO: These tolerances are just something that has been observed
// to be sufficient to pass the tests. It would be nicer to
// actually argue about why they are sufficient (or what is).
-#ifdef GMX_DOUBLE
- checker_.setDefaultTolerance(gmx::test::relativeRealTolerance(10.0, 512));
-#else
- checker_.setDefaultTolerance(gmx::test::relativeRealTolerance(10.0, 64));
-#endif
+ checker_.setDefaultTolerance(
+ gmx::test::relativeToleranceAsPrecisionDependentUlp(10.0, 64, 512));
}
~BaseFFTTest()
{