]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Do not output the partitioner when pretty-printing Vector objects. 13201/head
authorWolfgang Bangerth <bangerth@colostate.edu>
Fri, 7 Jan 2022 21:37:52 +0000 (14:37 -0700)
committerWolfgang Bangerth <bangerth@colostate.edu>
Sat, 8 Jan 2022 04:35:21 +0000 (21:35 -0700)
contrib/utilities/dotgdbinit.py

index 9dba301384cba263926392680e066138fd393eaa..4bcecd1247579c74b5a6a6e7bbd4480760f9b47a 100644 (file)
@@ -130,14 +130,10 @@ class VectorPrinter(object):
         self.begin = gdb.parse_and_eval(eval_string);
         self.length = int(self.end - self.begin )
 
-    def children(self):
-        return (("values", self.val['values']),
-                ("thread_loop_partitioner",
-                 self.val['thread_loop_partitioner']))
-
     def to_string(self):
-        return "Vector<{}>({})".format(self.val.type.template_argument(0),
-                                       self.length)
+        return ("Vector<{}>({})".format(self.val.type.template_argument(0),
+                                        self.length) +
+                build_output_string(['values'], self.val))
 
 
 class QuadraturePrinter(object):

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.