]> https://gitweb.dealii.org/ - dealii.git/commitdiff
FIx cell type that is checked 12412/head
authorBruno <blais.bruno@gmail.com>
Wed, 9 Jun 2021 14:14:39 +0000 (10:14 -0400)
committerBruno <blais.bruno@gmail.com>
Wed, 9 Jun 2021 14:14:39 +0000 (10:14 -0400)
include/deal.II/particles/particle_accessor.h
source/particles/particle_handler.cc

index 3e6a860797631d7ae97ffd04772cddf80bb65e11..855baa9ea0e35ec7021bb8e2ac5c5285e629a0ca 100644 (file)
@@ -713,7 +713,6 @@ namespace Particles
 
     ++particle_index_within_cell;
 
-
     if (particle_index_within_cell > (*particles)[active_cell_index].size() - 1)
       {
         const bool particle_is_locally_owned = cell->is_locally_owned();
index 07ff7504128523321f50ddff2f7f4fc3d2763cea..3cbddcf6d7fe24993f14ee47335095c628ed3735 100644 (file)
@@ -1310,7 +1310,7 @@ namespace Particles
 #else
     // Clear ghost particles and their properties
     for (const auto &cell : triangulation->active_cell_iterators())
-      if (cell->is_locally_owned() == false)
+      if (cell->is_ghost())
         {
           // Clear particle properties
           for (auto &ghost_particle : particles[cell->active_cell_index()])

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.