Skip to content
Snippets Groups Projects
Commit 039d843f authored by renchao.lu's avatar renchao.lu
Browse files

[MathLib] MatrixVectorTraits with PETScVector.

parent 6f6565a5
No related branches found
No related tags found
No related merge requests found
......@@ -82,6 +82,13 @@ newInstance(MatrixSpecifications const& spec)
}
}
std::unique_ptr<PETScVector> MatrixVectorTraits<PETScVector>::newInstance(
PETScVector::IndexType const length)
{
auto const is_global_size = true;
return std::make_unique<PETScVector>(length, is_global_size);
}
} // namespace MathLib
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment