Skip to content

Commit

Permalink
fix bug in lib UT
Browse files Browse the repository at this point in the history
  • Loading branch information
Han Wang committed Mar 15, 2021
1 parent 12ba87b commit 3bd863b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions source/lib/tests/test_ewald.cc
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@ TEST_F(TestEwald, cpu)
{
double ener;
std::vector<double > force, virial;
SimulationRegion<double> region;
region.reinitBox(&boxt[0]);
EwaldReciprocal(ener, force, virial, coord, charge, region, eparam);
Region<double> 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);
Expand Down

0 comments on commit 3bd863b

Please sign in to comment.