]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Adjust tests. 11360/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Sat, 12 Dec 2020 18:02:46 +0000 (11:02 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 12 Dec 2020 18:03:05 +0000 (11:03 -0700)
tests/particles/particle_03.cc
tests/particles/particle_06.cc
tests/particles/particle_07.cc
tests/particles/particle_iterator_01.cc
tests/particles/property_pool_01.cc
tests/particles/property_pool_02.cc
tests/serialization/particle_01.cc

index 62b308f17d147438bdb0bc202ab4ac867fc6ac68..26795fe6261ea9eb9eb3333c4a0980b6a8390baa 100644 (file)
@@ -29,8 +29,8 @@ void
 test()
 {
   {
-    const unsigned int      n_properties_per_particle = 3;
-    Particles::PropertyPool pool(n_properties_per_particle);
+    const unsigned int           n_properties_per_particle = 3;
+    Particles::PropertyPool<dim> pool(n_properties_per_particle);
 
     Point<2> position;
     position(0) = 0.3;
index 772c52dac3e9dd469dc7eabeae84b980cabcd538..4fbe6149d289772d7aa781d09305f4d5ccdd24f9 100644 (file)
@@ -29,8 +29,8 @@ void
 test()
 {
   {
-    const unsigned int      n_properties_per_particle = 3;
-    Particles::PropertyPool pool(n_properties_per_particle);
+    const unsigned int                     n_properties_per_particle = 3;
+    Particles::PropertyPool<dim, spacedim> pool(n_properties_per_particle);
 
     Point<spacedim> position;
 
index 68091b8a11d8704dde34289715d0f48cd663e8a1..273c16c2c5624024f4f4f5311649bd5d6b8fb08d 100644 (file)
@@ -29,8 +29,8 @@ void
 test()
 {
   {
-    const unsigned int      n_properties_per_particle = 3;
-    Particles::PropertyPool pool(n_properties_per_particle);
+    const unsigned int           n_properties_per_particle = 3;
+    Particles::PropertyPool<dim> pool(n_properties_per_particle);
 
     Point<2> position;
     position(0) = 0.3;
index d22dcd69e950f36deb0b38fc30a575c0a38e73ca..7cd13fb060915933c9babc934a79309aaa8e59dc 100644 (file)
@@ -31,8 +31,8 @@ void
 test()
 {
   {
-    const unsigned int      n_properties_per_particle = 3;
-    Particles::PropertyPool pool(n_properties_per_particle);
+    const unsigned int           n_properties_per_particle = 3;
+    Particles::PropertyPool<dim> pool(n_properties_per_particle);
 
     Point<dim> position;
     position(0) = 0.3;
index 68f3accfd0c18dc9a197a924ccef1ba6c60dde94..f34e8a3637b65c894c8241a2e32cf80733b53d61 100644 (file)
@@ -29,9 +29,12 @@ void
 test()
 {
   {
-    Particles::PropertyPool pool(1);
+    const int dim      = 2;
+    const int spacedim = 2;
 
-    typename Particles::PropertyPool::Handle handle =
+    Particles::PropertyPool<dim, spacedim> pool(1);
+
+    typename Particles::PropertyPool<dim, spacedim>::Handle handle =
       pool.allocate_properties_array();
 
     pool.get_properties(handle)[0] = 2.5;
index a4649de952d5fa1f7c27b3090477c5dd893aef67..4cb2e9a9f74b151b36313de844920202711525ee 100644 (file)
@@ -29,10 +29,13 @@ void
 test()
 {
   {
-    const unsigned int      n_properties = 3;
-    Particles::PropertyPool pool(n_properties);
+    const int dim      = 2;
+    const int spacedim = 2;
 
-    typename Particles::PropertyPool::Handle handle =
+    const unsigned int                     n_properties = 3;
+    Particles::PropertyPool<dim, spacedim> pool(n_properties);
+
+    typename Particles::PropertyPool<dim, spacedim>::Handle handle =
       pool.allocate_properties_array();
 
     pool.get_properties(handle)[0] = 1.2;
index 0ddcf88a96d54641906cb754a163a40e810633d9..a62d5523f38dcdea2fddad3a00bec2272d7e322a 100644 (file)
@@ -34,10 +34,10 @@ test()
     Point<spacedim> location;
     Point<dim>      reference_location;
 
-    location[spacedim - 1]      = 0.3;
-    reference_location[dim - 1] = 0.5;
-    const unsigned int      id  = 6;
-    Particles::PropertyPool property_pool(2);
+    location[spacedim - 1]                    = 0.3;
+    reference_location[dim - 1]               = 0.5;
+    const unsigned int                     id = 6;
+    Particles::PropertyPool<dim, spacedim> property_pool(2);
 
     Particles::Particle<dim, spacedim> particle(location,
                                                 reference_location,
@@ -65,7 +65,7 @@ test()
     std::istringstream            iss(oss.str());
     boost::archive::text_iarchive ia(iss, boost::archive::no_header);
 
-    Particles::PropertyPool property_pool(2);
+    Particles::PropertyPool<dim, spacedim> property_pool(2);
 
     Particles::Particle<dim, spacedim> particle;
     particle.set_property_pool(property_pool);

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.