MFEM  v4.6.0
Finite element discretization library
discrete_divergence.hpp
Go to the documentation of this file.
1 // Copyright (c) 2010-2023, 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_DISCRETE_DIVERGENCE_HPP
13 #define MFEM_DISCRETE_DIVERGENCE_HPP
14 
15 #include "mfem.hpp"
16 
17 namespace mfem
18 {
19 
20 /// @brief Eliminates columns in the given HypreParMatrix.
21 ///
22 /// This is similar to HypreParMatrix::EliminateBC, except that only the columns
23 /// are eliminated.
24 void EliminateColumns(HypreParMatrix &D, const Array<int> &ess_dofs);
25 
26 HypreParMatrix *FormDiscreteDivergenceMatrix(ParFiniteElementSpace &fes_rt,
27  ParFiniteElementSpace &fes_l2,
28  const Array<int> &ess_dofs);
29 
30 } // namespace mfem
31 
32 #endif
HypreParMatrix * FormDiscreteDivergenceMatrix(ParFiniteElementSpace &fes_rt, ParFiniteElementSpace &fes_l2, const Array< int > &ess_dofs)
void EliminateColumns(HypreParMatrix &D, const Array< int > &ess_dofs)
Eliminates columns in the given HypreParMatrix.