Skip to content

Commit

Permalink
remove register (clang++ doesn't support it anymore)
Browse files Browse the repository at this point in the history
  • Loading branch information
teuben committed Nov 22, 2023
1 parent 555d774 commit d592c1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/orbit/potential/acceleration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ namespace {
// add both potential and acceleration
for(int n=0,nn=0; n!=nbod; ++n,nn+=NDIM)
if(flag==0 || flag[n] & 1) {
register scalar P, A[NDIM];
scalar P, A[NDIM];
grav<scalar,NDIM>::get(pd,pf,pos+nn, P, A);
pot[n] += P;
v_add<NDIM>(acc+nn,A);
Expand All @@ -216,7 +216,7 @@ namespace {
// add potential, assign acceleration
for(int n=0,nn=0; n!=nbod; ++n,nn+=NDIM)
if(flag==0 || flag[n] & 1) {
register scalar P;
scalar P;
grav<scalar,NDIM>::get(pd,pf,pos+nn, P, acc+nn);
pot[n] += P;
}
Expand All @@ -226,7 +226,7 @@ namespace {
// assign potential, add acceleration
for(int n=0,nn=0; n!=nbod; ++n,nn+=NDIM)
if(flag==0 || flag[n] & 1) {
register scalar A[NDIM];
scalar A[NDIM];
grav<scalar,NDIM>::get(pd,pf,pos+nn, pot[n], A);
v_add<NDIM>(acc+nn,A);
}
Expand Down

0 comments on commit d592c1b

Please sign in to comment.