]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Fix implicit capture warning in step-32 10441/head
authorDaniel Arndt <arndtd@ornl.gov>
Tue, 2 Jun 2020 02:26:40 +0000 (22:26 -0400)
committerDaniel Arndt <arndtd@ornl.gov>
Tue, 2 Jun 2020 13:06:49 +0000 (09:06 -0400)
examples/step-32/step-32.cc

index d983a56f8126f523c339d3de402d5edbbf856cb2..0b8df86bdb6aa95f2d84051537fc4f5c7333f3bc 100644 (file)
@@ -2692,9 +2692,10 @@ namespace Step32
       FilteredIterator<typename DoFHandler<2>::active_cell_iterator>;
 
     auto worker =
-      [=](const typename DoFHandler<dim>::active_cell_iterator &cell,
-          Assembly::Scratch::TemperatureRHS<dim> &              scratch,
-          Assembly::CopyData::TemperatureRHS<dim> &             data) {
+      [this, global_T_range, maximal_velocity, global_entropy_variation](
+        const typename DoFHandler<dim>::active_cell_iterator &cell,
+        Assembly::Scratch::TemperatureRHS<dim> &              scratch,
+        Assembly::CopyData::TemperatureRHS<dim> &             data) {
         this->local_assemble_temperature_rhs(global_T_range,
                                              maximal_velocity,
                                              global_entropy_variation,

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.