Commits

Sam Leitner committed 2314f9d

increase max hash table size (for isolated disk)

  • Participants
  • Parent commits 20a0741

Comments (0)

Files changed (2)

yt/analysis_modules/halo_finding/halo_objects.py

             if dm_only:
                 select = self._get_dm_indices()
                 total_mass = \
-                    self.comm.mpi_allreduce((self._data_source["ParticleMassMsun"][select]).sum(dtype='float64'), op='sum')
+                    self.comm.mpi_allreduce((self._data_source['all', "ParticleMassMsun"][select]).sum(dtype='float64'), op='sum')
             else:
                 total_mass = self.comm.mpi_allreduce(self._data_source.quantities["TotalQuantity"]("ParticleMassMsun")[0], op='sum')
         # MJT: Note that instead of this, if we are assuming that the particles

yt/analysis_modules/halo_finding/hop/hop_hop.c

 	    /* Else, this slot was full, go to the next one */
 	    hp++;
 	    if (hp>=smx->hash+smx->nHashLength) hp = smx->hash;
-	    if (++count>1000) {
+	    if (++count>1000000) {
 		fprintf(stderr,"Hash Table is too full.\n");
 		exit(1);
 	    }