]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Avoid warning about unused variable in particle.h 11441/head
authorDaniel Arndt <arndtd@ornl.gov>
Wed, 30 Dec 2020 23:08:05 +0000 (18:08 -0500)
committerDaniel Arndt <arndtd@ornl.gov>
Wed, 30 Dec 2020 23:08:05 +0000 (18:08 -0500)
include/deal.II/particles/particle.h

index 7c54a29ba4cf965d547c43a4946adc911fb766b6..792562d57963df2fcddaacfe9607547c4482ae15 100644 (file)
@@ -517,8 +517,7 @@ namespace Particles
             std::to_string(properties.size()) +
             " properties. Deserializing a particle only works for matching property sizes."));
 
-        ar &boost::serialization::make_array(get_properties().data(),
-                                             n_properties);
+        ar &boost::serialization::make_array(properties.data(), n_properties);
       }
   }
 

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.