MFEM  v4.1.0
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
prestriction.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010-2020, Lawrence Livermore National Security, LLC. Produced
2 // at the Lawrence Livermore National Laboratory. All Rights reserved. See files
3 // LICENSE and NOTICE for details. LLNL-CODE-806117.
4 //
5 // This file is part of the MFEM library. For more information and source code
6 // availability visit https://mfem.org.
7 //
8 // MFEM is free software; you can redistribute it and/or modify it under the
9 // terms of the BSD-3 license. We welcome feedback and contributions, see file
10 // CONTRIBUTING.md for details.
11 
12 #ifndef MFEM_PRESTRICTION
13 #define MFEM_PRESTRICTION
14 
15 #include "../config/config.hpp"
16 
17 #ifdef MFEM_USE_MPI
18 
19 #include "restriction.hpp"
20 
21 namespace mfem
22 {
23 
24 class ParFiniteElementSpace;
25 
26 /// Operator that extracts Face degrees of freedom in parallel.
27 /** Objects of this type are typically created and owned by FiniteElementSpace
28  objects, see FiniteElementSpace::GetFaceRestriction(). */
30 {
31 protected:
33  const int nf;
34  const int vdim;
35  const bool byvdim;
36  const int ndofs;
37  const int dof;
38  const L2FaceValues m;
39  const int nfdofs;
44 
45 public:
47  FaceType type,
49  void Mult(const Vector &x, Vector &y) const;
50  void MultTranspose(const Vector &x, Vector &y) const;
51 };
52 
53 }
54 
55 #endif // MFEM_USE_MPI
56 
57 #endif //MFEM_PRESTRICTION
L2FaceValues
Definition: restriction.hpp:26
Operator that extracts Face degrees of freedom in parallel.
Abstract parallel finite element space.
Definition: pfespace.hpp:28
FaceType
Definition: mesh.hpp:42
void Mult(const Vector &x, Vector &y) const
Operator application: y=A(x).
const ParFiniteElementSpace & fes
void MultTranspose(const Vector &x, Vector &y) const
Action of the transpose operator: y=A^t(x). The default behavior in class Operator is to generate an ...
ElementDofOrdering
Constants describing the possible orderings of the DOFs in one element.
Definition: fespace.hpp:65
ParL2FaceRestriction(const ParFiniteElementSpace &, ElementDofOrdering, FaceType type, L2FaceValues m=L2FaceValues::DoubleValued)
Vector data type.
Definition: vector.hpp:48
const L2FaceValues m
Abstract operator.
Definition: operator.hpp:24