]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Update GnuplotFlags::memory_consumption(). 2723/head
authorDavid Wells <wellsd2@rpi.edu>
Sun, 26 Jun 2016 23:34:33 +0000 (19:34 -0400)
committerDavid Wells <wellsd2@rpi.edu>
Mon, 27 Jun 2016 01:10:04 +0000 (21:10 -0400)
Commit 32d9748d4e added new fields to GnuplotFlags but did not change
the way it reported its own memory consumption.

include/deal.II/base/data_out_base.h
source/base/data_out_base.cc
tests/base/memory_consumption_01.with_64bit_indices=off.output
tests/base/memory_consumption_01.with_64bit_indices=on.output

index 2cd35107e1142c2867411aec1a62d6730bd38f97..6ad27211e9443094ec97c5fc1828f3a270b610c5 100644 (file)
@@ -545,6 +545,12 @@ namespace DataOutBase
      */
     std::vector<std::string> space_dimension_labels;
 
+    /**
+     * Return an estimate for the memory consumption, in bytes, of this
+     * object.
+     */
+    std::size_t memory_consumption () const;
+
     /**
      * Exception to raise when there are not enough specified dimension
      * labels.
index feb15cc9dcb4f157b03c0f996ee90c16f39b9195..8fd02d8dc37a2b3ca4e3e6f51b981f2841071829 100644 (file)
@@ -1620,6 +1620,14 @@ namespace DataOutBase
 
 
 
+  std::size_t
+  GnuplotFlags::memory_consumption () const
+  {
+    return MemoryConsumption::memory_consumption(space_dimension_labels);
+  }
+
+
+
   PovrayFlags::PovrayFlags (const bool smooth,
                             const bool bicubic_patch,
                             const bool external_data)
index 862c1a10632e6c7277016c0c82f250ded8459280..3607c76697c8475ef0315583c6615a428f966e74 100644 (file)
@@ -44,7 +44,7 @@ DEAL::Memory consumption -- Sparsity:      936
 DEAL::Memory consumption -- Matrix:        1400
 DEAL::Memory consumption -- Solution:      432
 DEAL::Memory consumption -- Rhs:           432
-DEAL::Memory consumption -- DataOut:       3359
+DEAL::Memory consumption -- DataOut:       3394
 DEAL::2d
 DEAL::Cycle 0:
 DEAL::   Number of active cells:       20
@@ -90,7 +90,7 @@ DEAL::Memory consumption -- Sparsity:      64168
 DEAL::Memory consumption -- Matrix:        120824
 DEAL::Memory consumption -- Solution:      7472
 DEAL::Memory consumption -- Rhs:           7472
-DEAL::Memory consumption -- DataOut:       42819
+DEAL::Memory consumption -- DataOut:       42854
 DEAL::3d
 DEAL::Cycle 0:
 DEAL::   Number of active cells:       56
@@ -136,4 +136,4 @@ DEAL::Memory consumption -- Sparsity:      8321768
 DEAL::Memory consumption -- Matrix:        16383928
 DEAL::Memory consumption -- Solution:      259568
 DEAL::Memory consumption -- Rhs:           259568
-DEAL::Memory consumption -- DataOut:       1159755
+DEAL::Memory consumption -- DataOut:       1159790
index 9d6c388a836b96ec9f2c41c71608e89a0120534e..751cfa8fa23288e1766741c36a966adc2829165f 100644 (file)
@@ -44,7 +44,7 @@ DEAL::Memory consumption -- Sparsity:      1752
 DEAL::Memory consumption -- Matrix:        1400
 DEAL::Memory consumption -- Solution:      440
 DEAL::Memory consumption -- Rhs:           440
-DEAL::Memory consumption -- DataOut:       3336
+DEAL::Memory consumption -- DataOut:       3394
 DEAL::2d
 DEAL::Cycle 0:
 DEAL::   Number of active cells:       20
@@ -90,7 +90,7 @@ DEAL::Memory consumption -- Sparsity:      128216
 DEAL::Memory consumption -- Matrix:        120824
 DEAL::Memory consumption -- Solution:      7480
 DEAL::Memory consumption -- Rhs:           7480
-DEAL::Memory consumption -- DataOut:       42796
+DEAL::Memory consumption -- DataOut:       42854
 DEAL::3d
 DEAL::Cycle 0:
 DEAL::   Number of active cells:       56
@@ -136,4 +136,4 @@ DEAL::Memory consumption -- Sparsity:      16643416
 DEAL::Memory consumption -- Matrix:        16383928
 DEAL::Memory consumption -- Solution:      259576
 DEAL::Memory consumption -- Rhs:           259576
-DEAL::Memory consumption -- DataOut:       1159732
+DEAL::Memory consumption -- DataOut:       1159790

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.