From d7b6dee2db415fc5d0052dca47a45c44b9aaba6d Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Tue, 22 Apr 2025 13:35:38 +0200 Subject: Broken float decoder in forstio --- examples/meta_2d.cpp | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) (limited to 'examples/meta_2d.cpp') diff --git a/examples/meta_2d.cpp b/examples/meta_2d.cpp index 5aa39f4..a66f0e9 100644 --- a/examples/meta_2d.cpp +++ b/examples/meta_2d.cpp @@ -1,14 +1,31 @@ #include "../c++/lbm.hpp" +#include + int main(int argc, char** argv){ using namespace kel::lbm; + + auto eo_conf = load_lbm_config>("config.json"); + if(eo_conf.is_error()){ + auto& err = eo_conf.get_error(); + std::cerr<<"[Error]: "< conv{ {0.1}, {0.1} }; - print_lbm_meta>(conv, {1e-5}); + print_lbm_meta>(conv, {conf.template get<"kinematic_viscosity">()}); return 0; } -- cgit v1.2.3