Skip to content
Snippets Groups Projects
Commit f95b1295 authored by Timo Koch's avatar Timo Koch
Browse files

[io] Use mapper size for determining length of output vectors

parent 19075546
No related branches found
No related tags found
1 merge request!1025[io] Use mapper size for determining length of output vectors
......@@ -586,8 +586,8 @@ private:
template<class Vector, typename std::enable_if_t<!IsIndexable<decltype(std::declval<Vector>()[0])>::value, int> = 0>
std::size_t getNumberOfComponents_(const Vector& v) { return 1; }
//! return the number of dofs
std::size_t numDofs_() const { return gridGeom_.gridView().size(dofCodim); }
//! return the number of dofs, we only support vertex and cell data
std::size_t numDofs_() const { return dofCodim == dim ? gridGeom_.vertexMapper().size() : gridGeom_.elementMapper().size(); }
const Problem& problem_;
const FVGridGeometry& gridGeom_;
......
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