Skip to content

Commit

Permalink
* Fixing bug in RT load balancing when the number of grids with
Browse files Browse the repository at this point in the history
radiation is less than number of processors.

* StarParticleFinalize should be called before setting BCs.

--HG--
branch : week-of-code
  • Loading branch information
John Wise committed Feb 19, 2011
1 parent 561af94 commit 9a208e4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/enzo/EvolveLevel.C
Original file line number Diff line number Diff line change
Expand Up @@ -538,6 +538,11 @@ int EvolveLevel(TopGridData *MetaData, LevelHierarchyEntry *LevelArray[],

} // end loop over grids

/* Finalize (accretion, feedback, etc.) star particles */

StarParticleFinalize(Grids, MetaData, NumberOfGrids, LevelArray,
level, AllStars, TotalStarParticleCountPrevious);

/* For each grid: a) interpolate boundaries from the parent grid.
b) copy any overlapping zones from siblings. */

Expand All @@ -549,11 +554,6 @@ int EvolveLevel(TopGridData *MetaData, LevelHierarchyEntry *LevelArray[],
Exterior, LevelArray[level]);
#endif

/* Finalize (accretion, feedback, etc.) star particles */

StarParticleFinalize(Grids, MetaData, NumberOfGrids, LevelArray,
level, AllStars, TotalStarParticleCountPrevious);

/* If cosmology, then compute grav. potential for output if needed. */

//dcc cut second potential cut: Duplicate?
Expand Down
2 changes: 1 addition & 1 deletion src/enzo/LoadBalanceHilbertCurve.C
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,7 @@ int LoadBalanceHilbertCurve(grid *GridPointers[], int NumberOfGrids,
if (WorkLeft == 0) {
BlockDivisions[i] = grid_num-1;
ProcessorWork[i] = 0;
break;
continue;
}
WorkThisProcessor = 0;
GridsThisProcessor = 0;
Expand Down

0 comments on commit 9a208e4

Please sign in to comment.