]> https://gitweb.dealii.org/ - dealii.git/commitdiff
Switch MatrixOut to default to sparse output.
authorWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Apr 2025 21:59:56 +0000 (15:59 -0600)
committerWolfgang Bangerth <bangerth@colostate.edu>
Tue, 22 Apr 2025 21:59:56 +0000 (15:59 -0600)
include/deal.II/lac/matrix_out.h

index f82ac2f1b0b8a906471046cf42113864c61430b6..4d1db6f7362c1958137fb2c401e9ea443468914e 100644 (file)
@@ -121,7 +121,8 @@ public:
     bool discontinuous;
 
     /**
-     * By default, the MatrixOut class creates a plot in which each matrix
+     * If this flag is set to `false`, the MatrixOut class creates
+     * a plot in which each matrix
      * entry is actually shown, even if it is zero. For large
      * matrices, this results in very large output files, or indeed
      * exhausts the available memory. On the other hand, if the
@@ -131,6 +132,8 @@ public:
      * is proportional to the number of nonzero entries, rather than
      * proportional to $N^2$.
      *
+     * The default is `true`.
+     *
      * @note Internally, the current implementation continues to loop
      *   over all matrix entries, whether they are zero or not. As a
      *   consequence, the *run time* of outputting sparse matrices
@@ -149,7 +152,7 @@ public:
     Options(const bool         show_absolute_values = false,
             const unsigned int block_size           = 1,
             const bool         discontinuous        = false,
-            const bool         create_sparse_plot   = false);
+            const bool         create_sparse_plot   = true);
   };
 
   /**

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.