Skip to content

Commit

Permalink
Removed resetsum as vsum_mdt is replaced by vsum in CPLvelocity (not …
Browse files Browse the repository at this point in the history
…sure why previous velocity was used)
  • Loading branch information
edwardsmith999 authored and edwardsmith999 committed Dec 8, 2023
1 parent fab35cc commit 712bb02
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions test/gtests/CPL_force_unittest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -789,7 +789,7 @@ TEST_F(CPL_Force_Test, test_velocity_pre_force) {
}


//Test for CPLForceFlekkoy - get force
//Test for CPLForceVelocity - get force
TEST_F(CPL_Force_Test, test_velocity_get_force) {

//Call constructor using cell numbers
Expand Down Expand Up @@ -824,8 +824,6 @@ TEST_F(CPL_Force_Test, test_velocity_get_force) {

std::vector<double> f(3);
std::vector<int> cell(3);
//Reset sum here as vsum minus dt used in get force
fxyz.resetsums();
trplefor(icell,jcell,kcell){
r[0] = i/double(icell);
r[1] = j/double(jcell);
Expand Down Expand Up @@ -889,8 +887,6 @@ TEST_F(CPL_Force_Test, test_velocity_get_force_further) {

std::vector<double> f(3);
std::vector<int> cell(3);
//Reset sum here as vsum minus dt used in get force
fxyz.resetsums();
trplefor(icell,jcell,kcell){
r[0] = i/double(icell);
r[1] = j/double(jcell);
Expand Down

0 comments on commit 712bb02

Please sign in to comment.