Add files via upload

This commit is contained in:
nilsberglund-orleans
2022-05-28 14:44:43 +02:00
committed by GitHub
parent 111822f852
commit 564f4eb251
3 changed files with 52 additions and 43 deletions

View File

@@ -20,6 +20,7 @@ int bc_grouped(int bc)
case (BC_SCREEN_BINS): return(0);
case (BC_BOY): return(3);
case (BC_GENUS_TWO): return(4);
case (BC_ABSORBING): return(0);
default:
{
printf("Warning: Hashgrid will not be properly initialised, update bc_grouped()\n\n");
@@ -378,7 +379,7 @@ void update_hashgrid(t_particle* particle, t_hashgrid* hashgrid, int verbose)
/* place each particle in hash grid */
for (k=0; k<ncircles; k++)
// if (circleactive[k])
if (particle[k].active)
{
// printf("placing circle %i\t", k);
hashcell = hash_cell(particle[k].xc, particle[k].yc);