DOLFINx
DOLFINx C++ interface
utils.h
1 // Copyright (C) 2018-2019 Garth N. Wells
2 //
3 // This file is part of DOLFINx (https://www.fenicsproject.org)
4 //
5 // SPDX-License-Identifier: LGPL-3.0-or-later
6 
7 #include <dolfinx/common/IndexMap.h>
8 #include <dolfinx/la/Vector.h>
9 #pragma once
10 
11 namespace dolfinx::la
12 {
13 
15 enum class Norm
16 {
17  l1,
18  l2,
19  linf,
20  frobenius
21 };
22 
25 template <typename T>
26 void scatter_fwd(Vector<T>& v);
27 
32 template <typename T>
33 void scatter_rev(Vector<T>& v, dolfinx::common::IndexMap::Mode op);
34 
35 } // namespace dolfinx::la
Mode
Mode for reverse scatter operation.
Definition: IndexMap.h:53
Linear algebra interface.
Definition: sparsitybuild.h:15
Norm
Norm types.
Definition: utils.h:16
void scatter_rev(Vector< T > &v, dolfinx::common::IndexMap::Mode op)
Scatter la::Vector ghost data to owner. This process will result in multiple incoming values,...
Definition: utils.cpp:21
void scatter_fwd(Vector< T > &v)
Scatter la::Vector local data to ghost values.
Definition: utils.cpp:11