From f91511dc03280e38c877f8865488283113f7435c Mon Sep 17 00:00:00 2001 From: Hongfeng Ma Date: Mon, 25 Jul 2022 10:59:10 +0200 Subject: [PATCH] Update Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc Co-authored-by: Peter Munch --- .../Distributed_Moving_Laser_Heating.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) { -- 2.39.5