]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Only invert bits up to the maximum possible in ~CacheUpdateFlags 6401/head
authorDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 30 Apr 2018 15:27:28 +0000 (17:27 +0200)
committerDaniel Arndt <daniel.arndt@iwr.uni-heidelberg.de>
Mon, 30 Apr 2018 15:34:23 +0000 (17:34 +0200)
include/deal.II/grid/grid_tools_cache_update_flags.h

index dbac866d3ccc0b71429306acf152ca8b017e5402..7ecf04a24260707de15e484ea99cac961ca4d656 100644 (file)
@@ -121,8 +121,8 @@ namespace GridTools
   operator ~ (const CacheUpdateFlags f1)
   {
     return static_cast<CacheUpdateFlags> (
-             ~static_cast<unsigned int> (f1)
-           );
+             static_cast<unsigned int> (f1) ^
+             static_cast<unsigned int> (update_all));
   }
 
 

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.