MFEM  v3.2
Finite element discretization library
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
plinearform.hpp
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 #ifndef MFEM_PLINEARFORM
13 #define MFEM_PLINEARFORM
14 
15 #include "../config/config.hpp"
16 
17 #ifdef MFEM_USE_MPI
18 
19 #include "pfespace.hpp"
20 #include "linearform.hpp"
21 
22 namespace mfem
23 {
24 
26 class ParLinearForm : public LinearForm
27 {
28 protected:
30 
31 public:
32  ParLinearForm() : LinearForm() { pfes = NULL; }
33 
35 
36  void Update(ParFiniteElementSpace *pf = NULL);
37 
38  void Update(ParFiniteElementSpace *pf, Vector &v, int v_offset);
39 
41  void ParallelAssemble(Vector &tv);
42 
45 };
46 
47 }
48 
49 #endif // MFEM_USE_MPI
50 
51 #endif
Abstract parallel finite element space.
Definition: pfespace.hpp:28
Class for parallel linear form.
Definition: plinearform.hpp:26
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
ParLinearForm(ParFiniteElementSpace *pf)
Definition: plinearform.hpp:34
ParFiniteElementSpace * pfes
Definition: plinearform.hpp:29
Vector data type.
Definition: vector.hpp:33
Class for linear form - Vector with associated FE space and LFIntegrators.
Definition: linearform.hpp:23