Skip to content

Commit

Permalink
small fix to gather copies to avoid uninitialized data warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
lightsighter committed Oct 30, 2020
1 parent b098162 commit 9fcbb64
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Mesh.cc
Original file line number Diff line number Diff line change
Expand Up @@ -224,9 +224,9 @@ Mesh::Mesh(
wxy = new WriteXY(this);
egold = new ExportGold(this);

#ifndef NO_LEGION_CONTROL_REPLICATION
// Call this to populate the numpcx and numpcy fields
gmesh->calcNumPieces(numpcs);
#ifndef NO_LEGION_CONTROL_REPLICATION
PennantShardingFunctor *functor =
new PennantShardingFunctor(gmesh->numpcx, gmesh->numpcy);
runtime->register_sharding_functor(PENNANT_SHARD_ID, functor,
Expand Down Expand Up @@ -880,6 +880,7 @@ void Mesh::initParallel() {
update_launcher.add_dst_field(0/*index*/, FID_MAPSP1);
update_launcher.add_src_indirect_field(FID_MAPSP1TEMP,
RegionRequirement(lps, 0/*identity projection*/, READ_ONLY, EXCLUSIVE, lrs));
update_launcher.possible_src_indirect_out_of_range = false;
runtime->issue_copy_operation(ctx, update_launcher);
}
{
Expand All @@ -892,6 +893,7 @@ void Mesh::initParallel() {
update_launcher.add_dst_field(0/*index*/, FID_MAPSP2);
update_launcher.add_src_indirect_field(FID_MAPSP2TEMP,
RegionRequirement(lps, 0/*identity projection*/, READ_ONLY, EXCLUSIVE, lrs));
update_launcher.possible_src_indirect_out_of_range = false;
runtime->issue_copy_operation(ctx, update_launcher);
}
#else
Expand Down

0 comments on commit 9fcbb64

Please sign in to comment.