]> https://gitweb.dealii.org/ - code-gallery.git/commitdiff
Update Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc
authorHongfeng Ma <ma54746929@gmail.com>
Mon, 25 Jul 2022 08:59:10 +0000 (10:59 +0200)
committerGitHub <noreply@github.com>
Mon, 25 Jul 2022 08:59:10 +0000 (10:59 +0200)
Co-authored-by: Peter Munch <peterrmuench@gmail.com>
Distributed_Moving_Laser_Heating/Distributed_Moving_Laser_Heating.cc

index f8d88d52808a2a794352893fdff47a5174def77d..34c32064bd18a3ef1eeb3bf8c1c6bcaa9be12540 100644 (file)
@@ -283,7 +283,7 @@ void LaserHeating<dim>::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())
     {
 

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


Typeset in Trocchi and Trocchi Bold Sans Serif.