MFEM  v4.5.2
Finite element discretization library
full-assembly.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_CEED_ASSEMBLE_HPP
13 #define MFEM_CEED_ASSEMBLE_HPP
14 
15 #include "../interface/ceed.hpp"
16 
17 #ifdef MFEM_USE_CEED
18 
19 namespace mfem
20 {
21 
22 namespace ceed
23 {
24 
25 /** @brief Assembles a CeedOperator as an mfem::SparseMatrix
26 
27  In parallel, this assembles independently on each processor, that is, it
28  assembles at the L-vector level. The assembly procedure is always performed
29  on the host, but this works also for operators stored on device by copying
30  memory. */
31 int CeedOperatorFullAssemble(CeedOperator op, SparseMatrix **mat);
32 
33 } // namespace ceed
34 
35 } // namespace mfem
36 
37 #endif
38 
39 #endif
int CeedOperatorFullAssemble(CeedOperator op, SparseMatrix **mat)
Assembles a CeedOperator as an mfem::SparseMatrix.