Reference documentation for deal.II version 9.1.0-pre
matrix_out.cc
1 // ---------------------------------------------------------------------
2 //
3 // Copyright (C) 2001 - 2017 by the deal.II authors
4 //
5 // This file is part of the deal.II library.
6 //
7 // The deal.II library is free software; you can use it, redistribute
8 // it, and/or modify it under the terms of the GNU Lesser General
9 // Public License as published by the Free Software Foundation; either
10 // version 2.1 of the License, or (at your option) any later version.
11 // The full text of the license can be found in the file LICENSE.md at
12 // the top level directory of deal.II.
13 //
14 // ---------------------------------------------------------------------
15 
16 #include <deal.II/lac/matrix_out.h>
17 
18 DEAL_II_NAMESPACE_OPEN
19 
20 
21 MatrixOut::Options::Options(const bool show_absolute_values,
22  const unsigned int block_size,
23  const bool discontinuous)
24  : show_absolute_values(show_absolute_values)
25  , block_size(block_size)
26  , discontinuous(discontinuous)
27 {}
28 
29 
30 
31 const std::vector<MatrixOut::Patch> &
33 {
34  return patches;
35 }
36 
37 
38 
39 std::vector<std::string>
41 {
42  return std::vector<std::string>(1, name);
43 }
44 
45 DEAL_II_NAMESPACE_CLOSE
virtual std::vector< std::string > get_dataset_names() const override
Definition: matrix_out.cc:40
std::vector< Patch > patches
Definition: matrix_out.h:157
std::string name
Definition: matrix_out.h:162
Options(const bool show_absolute_values=false, const unsigned int block_size=1, const bool discontinuous=false)
Definition: matrix_out.cc:21
virtual const std::vector< Patch > & get_patches() const override
Definition: matrix_out.cc:32