src/libparty_soa.cc
// return the rank that a particle p lives on (sync bboxes first)
return the rank that a particle p lives on (sync bboxes first)
return the rank that a particle p lives on ( sync bboxes first )
int part_sys_soa::checkproc( int pind ) {
  if (checkbbox_soa(x[pind], y[pind], z[pind], bboxes[mproc])) {
    return mproc;
  } else {
    for(int proc=0; proc < nprocs; proc++) {
      if (checkbbox_soa(x[pind], y[pind], z[pind], bboxes[proc])) {
        return proc;
      }
    }
    return -1;
  }
}
int part_sys_soa :: checkproc ( int pind ) { if ( checkbbox_soa ( x [ pind ] , y [ pind ] , z [ pind ] , bboxes [ mproc ] ) ) { return mproc ; } else { for ( int proc = 0 ; proc < nprocs ; proc ++ ) { if ( checkbbox_soa ( x [ pind ] , y [ pind ] , z [ pind ] , bboxes [ proc ] ) ) { return proc ; } } return -1 ; } }
return the rank that a particle p lives on (sync bboxes first)
return the rank that a particle p lives on ( sync bboxes first )