]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Use ParticleAccessor::set_properties() taking a Tensor.
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 20 Aug 2021 01:37:32 +0000 (19:37 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Fri, 20 Aug 2021 01:37:32 +0000 (19:37 -0600)
examples/step-19/step-19.cc

index aac35e91b85ea08ef32b873e5dd03f69ed174a0f..b197b16933fea634652791c5abd6187c539c4bff 100644 (file)
@@ -707,7 +707,7 @@ namespace Step19
                 const Tensor<1, dim> new_velocity =
                   old_velocity + acceleration * dt;
 
-                particle->set_properties(make_array_view(new_velocity));
+                particle->set_properties(new_velocity);
 
                 // With the new velocity, we can then also update the location
                 // of the particle and tell the particle about it.

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.