From 163d9efb1b14f3b24a504f0c76fe7eba8380da81 Mon Sep 17 00:00:00 2001 From: Wolfgang Bangerth Date: Thu, 19 Aug 2021 19:37:32 -0600 Subject: [PATCH] Use ParticleAccessor::set_properties() taking a Tensor. --- examples/step-19/step-19.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/step-19/step-19.cc b/examples/step-19/step-19.cc index aac35e91b8..b197b16933 100644 --- a/examples/step-19/step-19.cc +++ b/examples/step-19/step-19.cc @@ -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. -- 2.39.5