MFEM v2.0
|
00001 // Copyright (c) 2010, Lawrence Livermore National Security, LLC. Produced at 00002 // the Lawrence Livermore National Laboratory. LLNL-CODE-443211. All Rights 00003 // reserved. See file COPYRIGHT for details. 00004 // 00005 // This file is part of the MFEM library. For more information and source code 00006 // availability see http://mfem.googlecode.com. 00007 // 00008 // MFEM is free software; you can redistribute it and/or modify it under the 00009 // terms of the GNU Lesser General Public License (as published by the Free 00010 // Software Foundation) version 2.1 dated February 1999. 00011 00012 #ifdef MFEM_USE_MPI 00013 00014 #include "fem.hpp" 00015 00016 void ParLinearForm::Update(ParFiniteElementSpace *pf) 00017 { 00018 if (pf) pfes = pf; 00019 00020 LinearForm::Update(pfes); 00021 } 00022 00023 HypreParVector *ParLinearForm::ParallelAssemble() 00024 { 00025 HypreParVector *tv = new HypreParVector(pfes->GlobalTrueVSize(), 00026 pfes->GetTrueDofOffsets()); 00027 pfes->Dof_TrueDof_Matrix()->MultTranspose(*this, *tv); 00028 return tv; 00029 } 00030 00031 #endif