diff --git a/source/lib/tests/test_ewald.cc b/source/lib/tests/test_ewald.cc index 441e44f782..44cb758273 100644 --- a/source/lib/tests/test_ewald.cc +++ b/source/lib/tests/test_ewald.cc @@ -38,9 +38,9 @@ TEST_F(TestEwald, cpu) { double ener; std::vector force, virial; - SimulationRegion region; - region.reinitBox(&boxt[0]); - EwaldReciprocal(ener, force, virial, coord, charge, region, eparam); + Region region; + init_region_cpu(region, &boxt[0]); + ewald_recp(ener, force, virial, coord, charge, region, eparam); EXPECT_LT(fabs(ener - expected_e), 1e-10); for(int ii = 0; ii < force.size(); ++ii){ EXPECT_LT(fabs(force[ii] - expected_f[ii]), 1e-10);