deal.II version GIT relicensing-6834-g5b78e6bcdf 2026-10-01 11:20:01+00:00
\(\newcommand{\dealvcentcolon}{\mathrel{\mathop{:}}}\) \(\newcommand{\dealcoloneq}{\dealvcentcolon\mathrel{\mkern-1.2mu}=}\) \(\newcommand{\jump}[1]{\left[\!\left[ #1 \right]\!\right]}\) \(\newcommand{\average}[1]{\left\{\!\left\{ #1 \right\}\!\right\}}\)
Loading...
Searching...
No Matches
block_mask.cc
Go to the documentation of this file.
1// -----------------------------------------------------------------------------
2//
3// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception OR LGPL-2.1-or-later
4// Copyright (C) 2012 - 2026 by the deal.II authors
5//
6// This file is part of the deal.II library.
7//
8// Detailed license information governing the source code and contributions
9// can be found in LICENSE.md and CONTRIBUTING.md at the top level directory.
10//
11// -----------------------------------------------------------------------------
12
13
14#include <deal.II/base/config.h>
15
17
19
20#include <cstddef>
21#include <iostream>
22#include <vector>
23
24
26
27std::ostream &
28operator<<(std::ostream &out, const BlockMask &mask)
29{
30 if (mask.block_mask.empty())
31 out << "[all blocks selected]";
32 else
33 {
34 out << '[';
35 for (unsigned int i = 0; i < mask.block_mask.size(); ++i)
36 {
37 out << (mask.block_mask[i] ? "true" : "false");
38 if (i != mask.block_mask.size() - 1)
39 out << ',';
40 }
41 out << ']';
42 }
43
44 return out;
45}
46
47
48
49std::size_t
54
55
std::ostream & operator<<(std::ostream &out, const BlockMask &mask)
Definition block_mask.cc:28
std::size_t memory_consumption() const
Definition block_mask.cc:50
std::vector< bool > block_mask
Definition block_mask.h:221
#define DEAL_II_NAMESPACE_OPEN
Definition config.h:38
#define DEAL_II_NAMESPACE_CLOSE
Definition config.h:39
std::enable_if_t< std::is_fundamental_v< T >, std::size_t > memory_consumption(const T &t)