summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2026-02-13 11:16:53 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2026-02-13 11:16:53 +0100
commit1c71af2bf76b1cc29f7d2a98c5b5b0aa746ec759 (patch)
treee6d4b88ec07aed1283de304588552caa87a3999b
parent62c7dcd0c508ca9559e923a023181600196bf5ca (diff)
downloadlibs-lbm-1c71af2bf76b1cc29f7d2a98c5b5b0aa746ec759.tar.gz
Added component to scalar value
-rw-r--r--lib/core/c++/write_vtk.hpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/core/c++/write_vtk.hpp b/lib/core/c++/write_vtk.hpp
index 751ec50..f7b8f8f 100644
--- a/lib/core/c++/write_vtk.hpp
+++ b/lib/core/c++/write_vtk.hpp
@@ -23,7 +23,7 @@ struct lbm_vtk_writer {
template<typename T, uint64_t D>
struct lbm_vtk_writer<sch::Primitive<T,D>> {
static saw::error_or<void> apply_header(std::ostream& vtk_file, std::string_view name){
- vtk_file<<"SCALARS "<<name<<" float\n";
+ vtk_file<<"SCALARS "<<name<<" float 1\n";
vtk_file<<"LOOKUP_TABLE default\n";
return saw::make_void();
}