Commit b6d84c7a authored by Gregor Olenik's avatar Gregor Olenik
Browse files

create additional executor to force eager copy

parent b7191767
......@@ -174,14 +174,19 @@ public:
// if system matrix is not stored create it
// and set shared pointer
auto gkomatrix = gko::share(
mtx::create(device_exec, gko::dim<2>(nCells(), nCells()),
val_array::view(ref_exec(), nElems(), &values_[0]),
idx_array::view(ref_exec(), nElems(), &col_idxs_[0]),
idx_array::view(ref_exec(), nElems(), &row_idxs_[0])));
nElems(), &values_[0]),
nElems(), &col_idxs_[0]),
nElems(), &row_idxs_[0])));
// if updating system matrix is not needed store ptr in obj registry
if (!get_update_sys_matrix()) {
Info << "store sys matrix" << endl;
const fileName path = sys_matrix_name;
gkomatrix_ptr = new GKOCOOIOPtr(IOobject(path, db), gkomatrix);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment