Skip to content

Commit

Permalink
One more AddAccExt change
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin D. Weinberg committed Dec 22, 2024
1 parent 1159c2c commit 872edf1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/user/UserLogPot.cc
Original file line number Diff line number Diff line change
Expand Up @@ -105,11 +105,11 @@ void * UserLogPot::determine_acceleration_and_potential_thread(void * arg)
zz = cC->Pos(i, 2);
rr = R*R + xx*xx + yy*yy/(b*b) + zz*zz/(c*c);

cC->AddAcc(i, 0,-v2*xx/rr );
cC->AddAccExt(i, 0,-v2*xx/rr );

cC->AddAcc(i, 1, -v2*yy/(rr*b*b) );
cC->AddAccExt(i, 1, -v2*yy/(rr*b*b) );

cC->AddAcc(i, 2, -v2*zz/(rr*c*c) );
cC->AddAccExt(i, 2, -v2*zz/(rr*c*c) );

cC->AddPotExt(i, 0.5*v2*log(rr) );
}
Expand Down

0 comments on commit 872edf1

Please sign in to comment.