@@ -525,7 +1042,7 @@ void legacy_interact( struct part* parts, int i , struct cell* root , int monito
...
@@ -525,7 +1042,7 @@ void legacy_interact( struct part* parts, int i , struct cell* root , int monito
#if ICHECK >= 0
#if ICHECK >= 0
if(parts[i].id==monitor)
if(parts[i].id==monitor)
printf("[BH_] Can interact with the monopole. x= %f %f %f m= %f h= %f\n",cell->com_legacy[0],cell->com_legacy[1],cell->com_legacy[2],cell->mass_legacy,cell->h[0]);
printf("[BH_] Can interact with the monopole. x= %f %f %f m= %f h= %f\n",cell->com[0],cell->com[1],cell->com[2],cell->mass,cell->h[0]);
#endif
#endif
...
@@ -761,7 +1278,7 @@ void test_bh ( int N , int nr_threads , int runs , char* fileName ) {
...
@@ -761,7 +1278,7 @@ void test_bh ( int N , int nr_threads , int runs , char* fileName ) {
/* Do a N^2 interactions calculation */
/* Do a N^2 interactions calculation */
tic_exact=getticks();
tic_exact=getticks();
//interact_exact( N , parts , ICHECK );
interact_exact(N,parts,ICHECK);
toc_exact=getticks();
toc_exact=getticks();
printf("Exact calculation (1 thread) took %lli (= %e) ticks\n",toc_exact-tic_exact,(float)(toc_exact-tic_exact));
printf("Exact calculation (1 thread) took %lli (= %e) ticks\n",toc_exact-tic_exact,(float)(toc_exact-tic_exact));
...
@@ -784,12 +1301,6 @@ void test_bh ( int N , int nr_threads , int runs , char* fileName ) {
...
@@ -784,12 +1301,6 @@ void test_bh ( int N , int nr_threads , int runs , char* fileName ) {