From: Hongfeng Ma Date: Mon, 25 Jul 2022 08:59:10 +0000 (+0200) Subject: Update Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f91511dc03280e38c877f8865488283113f7435c;p=code-gallery.git Update Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc Co-authored-by: Peter Munch --- diff --git a/Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc b/Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc index f8d88d5..34c3206 100644 --- a/Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc +++ b/Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc @@ -283,7 +283,7 @@ void LaserHeating::assemble_system_matrix_init (double time_step) cell = dof_handler.begin_active(), endc = dof_handler.end(); - for (; cell!=endc; ++cell) + for (const auto cell : dof_handler.active_cell_iterator()) if(cell->is_locally_owned()) {