Skip to content

Commit

Permalink
A few more AddAccExt changes
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-petersen committed Dec 22, 2024
1 parent 64c87cc commit ffa4513
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/user/UserHalo.cc
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ void UserHalo::determine_acceleration_and_potential(void)

exp_thread_fork(false);

print_timings("UserHalo: accleration timings");
print_timings("UserHalo: acceleration timings");
}


Expand Down Expand Up @@ -214,7 +214,7 @@ void * UserHalo::determine_acceleration_and_potential_thread(void * arg)
*/
// END DEBUG

// Add external accerlation
// Add external acceleration
for (int k=0; k<3; k++)
cC->AddAccExt(i, k, -dpot*pos[k]/(qq[k]*r) );

Expand Down
6 changes: 3 additions & 3 deletions src/user/UserMNdisk.cc
Original file line number Diff line number Diff line change
Expand Up @@ -174,9 +174,9 @@ void * UserMNdisk::determine_acceleration_and_potential_thread(void * arg)
double fz = -mass*zz*ab/(zb*dn*dn*dn);

// Add acceleration by disk
cC->AddAcc(i, 0, amp * fr*xx/(rr+1.0e-10) );
cC->AddAcc(i, 1, amp * fr*yy/(rr+1.0e-10) );
cC->AddAcc(i, 2, amp * fz );
cC->AddAccExt(i, 0, amp * fr*xx/(rr+1.0e-10) );
cC->AddAccExt(i, 1, amp * fr*yy/(rr+1.0e-10) );
cC->AddAccExt(i, 2, amp * fz );

// Add external potential
cC->AddPotExt(i, pot);
Expand Down
6 changes: 3 additions & 3 deletions src/user/UserMW.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ void * UserMW::determine_acceleration_and_potential_thread(void * arg)
double zacc = az1 + az2 + az3 + az4;

// Add acceleration to particle
cC->AddAcc(i, 0, xacc );
cC->AddAcc(i, 1, yacc );
cC->AddAcc(i, 2, zacc );
cC->AddAccExt(i, 0, xacc );
cC->AddAccExt(i, 1, yacc );
cC->AddAccExt(i, 2, zacc );

// Add external potential
cC->AddPotExt(i, pot);
Expand Down

0 comments on commit ffa4513

Please sign in to comment.