Skip to content
Snippets Groups Projects
Unverified Commit 973a152b authored by Jayesh Badwaik's avatar Jayesh Badwaik
Browse files

- more fixes

parent cd330218
Branches vtk
No related tags found
No related merge requests found
Pipeline #141301 failed
......@@ -114,6 +114,9 @@ scalar_data<F, Alloc>::scalar_data(
value_array_(nelement, alloc),
field_array_(nelement * ncomponent, alloc)
{
for (std::size_t i = 0; i < nelement; ++i) {
value_array_[i] = value_type(ncomponent, &field_array_[i * ncomponent]);
}
}
template <typename F, typename Alloc>
......
......@@ -56,6 +56,12 @@ private:
field_type* begin_;
field_type* end_;
};
template <typename F>
scalar_value<F>::scalar_value(std::size_t ncomp, field_type* begin)
: begin_{begin}, end_{begin + ncomp}
{
}
} // namespace zell::io::vtk::ugrid
#endif // ZELL_IO_VTK_UGRID_SCALAR_VALUE_HPP
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment