MFEM  v4.2.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 public:
33  FaceType type,
35  void Mult(const Vector &x, Vector &y) const;
36  /** Fill the I array of SparseMatrix corresponding to the sparsity pattern
37  given by this ParL2FaceRestriction. */
38  void FillI(SparseMatrix &mat, SparseMatrix &face_mat) const;
39  /** Fill the J and Data arrays of SparseMatrix corresponding to the sparsity
40  pattern given by this ParL2FaceRestriction, and the values of ea_data. */
41  void FillJAndData(const Vector &ea_data,
42  SparseMatrix &mat,
43  SparseMatrix &face_mat) const;
44 };
45 
46 }
47 
48 #endif // MFEM_USE_MPI
49 
50 #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
const L2FaceValues m
FaceType
Definition: mesh.hpp:45
Data type sparse matrix.
Definition: sparsemat.hpp:46
Operator that extracts Face degrees of freedom.
void Mult(const Vector &x, Vector &y) const
Operator application: y=A(x).
void FillI(SparseMatrix &mat, SparseMatrix &face_mat) const
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:51
void FillJAndData(const Vector &ea_data, SparseMatrix &mat, SparseMatrix &face_mat) const