From: Wolfgang Bangerth Date: Tue, 22 Apr 2025 21:59:56 +0000 (-0600) Subject: Switch MatrixOut to default to sparse output. X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ce5fc00b2f2b452c78c44b128d7bba6f6e28716;p=dealii.git Switch MatrixOut to default to sparse output. --- diff --git a/include/deal.II/lac/matrix_out.h b/include/deal.II/lac/matrix_out.h index f82ac2f1b0..4d1db6f736 100644 --- a/include/deal.II/lac/matrix_out.h +++ b/include/deal.II/lac/matrix_out.h @@ -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); }; /**