MFEM
v4.3.0
Finite element discretization library
|
#include <ginkgo.hpp>
Public Member Functions | |
VectorWrapper (std::shared_ptr< const gko::Executor > exec, gko::size_type size, Vector *mfem_vec, bool ownership=false) | |
gko::Array (exec, size, mfem_vec->ReadWrite(exec!=exec->get_master()?true:false)) | |
if (ownership) | |
Vector & | get_mfem_vec_ref () |
const Vector & | get_mfem_vec_const_ref () const |
virtual std::unique_ptr < gko::matrix::Dense< double > > | create_with_same_config () const override |
virtual std::unique_ptr < gko::matrix::Dense< double > > | create_with_type_of_impl (std::shared_ptr< const gko::Executor > exec, const gko::dim< 2 > &size, gko::size_type stride) const override |
virtual std::unique_ptr < gko::matrix::Dense< double > > | create_submatrix_impl (const gko::span &rows, const gko::span &columns, const gko::size_type stride) override |
Static Public Member Functions | |
static std::unique_ptr < VectorWrapper > | create (std::shared_ptr< const gko::Executor > exec, gko::size_type size, Vector *mfem_vec, bool ownership=false) |
Public Attributes | |
else | |
wrapped_vec | |
This class wraps an MFEM vector object for Ginkgo's use. It allows Ginkgo and MFEM to operate directly on the same data, and is necessary to use MFEM Operators with Ginkgo solvers.
Definition at line 60 of file ginkgo.hpp.
|
inline |
Definition at line 63 of file ginkgo.hpp.
|
inlinestatic |
Definition at line 96 of file ginkgo.hpp.
|
inlineoverridevirtual |
Definition at line 166 of file ginkgo.hpp.
|
inlineoverridevirtual |
Definition at line 115 of file ginkgo.hpp.
|
inlineoverridevirtual |
Definition at line 136 of file ginkgo.hpp.
|
inline |
Definition at line 110 of file ginkgo.hpp.
|
inline |
Definition at line 107 of file ginkgo.hpp.
mfem::Ginkgo::VectorWrapper::gko::Array | ( | exec | , |
size | , | ||
mfem_vec-> | ReadWriteexec!=exec->get_master()?true:false | ||
) |
|
inline |
Definition at line 80 of file ginkgo.hpp.
mfem::Ginkgo::VectorWrapper::else |
Definition at line 88 of file ginkgo.hpp.
mfem::Ginkgo::VectorWrapper::wrapped_vec |
Definition at line 90 of file ginkgo.hpp.