MFEM  v3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
plinearform.cpp
Go to the documentation of this file.
1 // Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at
2 // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights
3 // reserved. See file COPYRIGHT for details.
4 //
5 // This file is part of the MFEM library. For more information and source code
6 // availability see http://mfem.org.
7 //
8 // MFEM is free software; you can redistribute it and/or modify it under the
9 // terms of the GNU Lesser General Public License (as published by the Free
10 // Software Foundation) version 2.1 dated February 1999.
11 
12 #include "../config/config.hpp"
13 
14 #ifdef MFEM_USE_MPI
15 
16 #include "fem.hpp"
17 
18 namespace mfem
19 {
20 
22 {
23  if (pf) { pfes = pf; }
24 
26 }
27 
29 {
30  pfes = pf;
31  LinearForm::Update(pf,v,v_offset);
32 }
33 
35 {
36  pfes->Dof_TrueDof_Matrix()->MultTranspose(*this, tv);
37 }
38 
40 {
42  pfes->Dof_TrueDof_Matrix()->MultTranspose(*this, *tv);
43  return tv;
44 }
45 
46 }
47 
48 #endif
HypreParVector * NewTrueDofVector()
Definition: pfespace.hpp:196
HYPRE_Int MultTranspose(HypreParVector &x, HypreParVector &y, double alpha=1.0, double beta=0.0)
Computes y = alpha * A^t * x + beta * y.
Definition: hypre.cpp:1010
Abstract parallel finite element space.
Definition: pfespace.hpp:28
HypreParMatrix * Dof_TrueDof_Matrix()
The true dof-to-dof interpolation matrix.
Definition: pfespace.cpp:345
Wrapper for hypre's parallel vector class.
Definition: hypre.hpp:58
HypreParVector * ParallelAssemble()
Returns the vector assembled on the true dofs, i.e. P^t v.
Definition: plinearform.cpp:39
ParFiniteElementSpace * pfes
Definition: plinearform.hpp:29
Vector data type.
Definition: vector.hpp:33