12 : scheduler_type_(in_scheduler_type),
13 angle_agg_(in_angle_agg),
14 sweep_chunk_(in_sweep_chunk),
15 sweep_event_tag_(
Chi::log.GetRepeatingEventTag(
"Sweep Timing")),
16 sweep_timing_events_tag_(
21 angle_agg_.InitializeReflectingBCs();
27 for (
auto& angsetgrp : in_angle_agg.angle_set_groups)
28 for (
auto& angset : angsetgrp.AngleSets())
29 angset->InitializeDelayedUpstreamData();
33 int local_max_num_messages = 0;
34 for (
auto& angsetgrp : in_angle_agg.angle_set_groups)
35 for (
auto& angset : angsetgrp.AngleSets())
36 local_max_num_messages =
37 std::max(angset->GetMaxBufferMessages(), local_max_num_messages);
40 int global_max_num_messages = 0;
41 MPI_Allreduce(&local_max_num_messages,
42 &global_max_num_messages,
49 for (
auto& angsetgrp : in_angle_agg.angle_set_groups)
50 for (
auto& angset : angsetgrp.AngleSets())
51 angset->SetMaxBufferMessages(global_max_num_messages);
static chi::MPI_Info & mpi
size_t GetRepeatingEventTag(std::string event_name)
const size_t sweep_event_tag_
SweepScheduler(SchedulingAlgorithm in_scheduler_type, AngleAggregation &in_angle_agg, SweepChunk &in_sweep_chunk)
SweepChunk & GetSweepChunk()