This was found by cppcheck.
void
Timer::print_last_lap_wall_time_data(StreamType &stream) const
{
- const Utilities::MPI::MinMaxAvg statistic = get_last_lap_wall_time_data();
+ const Utilities::MPI::MinMaxAvg &statistic = get_last_lap_wall_time_data();
stream << statistic.max << " wall,"
<< " max @" << statistic.max_index << ", min=" << statistic.min << " @"
<< statistic.min_index << ", avg=" << statistic.avg << std::endl;
merge_patches (const DataOut_DoFData<DoFHandlerType2,patch_dim,patch_space_dim> &source,
const Point<patch_space_dim> &shift)
{
- const std::vector<Patch> source_patches = source.get_patches ();
+ const std::vector<Patch> &source_patches = source.get_patches ();
Assert ((patches.size () != 0) &&
(source_patches.size () != 0),
ExcMessage ("When calling this function, both the current "
In the beginning the Universe was created. This has made a lot of
people very angry and has been widely regarded as a bad move.
Douglas Adams