From 24bf28a8fb9cc8c3a90b77de9b60728bece7885d Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Sat, 18 Oct 2025 18:01:14 +0200 Subject: Moving project structure for more less compilation --- examples/meta_2d/meta_2d.cpp | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 examples/meta_2d/meta_2d.cpp (limited to 'examples/meta_2d/meta_2d.cpp') diff --git a/examples/meta_2d/meta_2d.cpp b/examples/meta_2d/meta_2d.cpp new file mode 100644 index 0000000..6d19800 --- /dev/null +++ b/examples/meta_2d/meta_2d.cpp @@ -0,0 +1,36 @@ +#include + +#include + +int main(int argc, char** argv){ + using namespace kel::lbm; + + std::string_view cfg_file_name = "config.json"; + if(argc > 1){ + cfg_file_name = argv[1]; + } + + auto eo_conf = load_lbm_config>(cfg_file_name); + if(eo_conf.is_error()){ + auto& err = eo_conf.get_error(); + std::cerr<<"[Error]: "< conv{ + {conf.template get<"delta_x">()}, + {conf.template get<"delta_t">()} + }; + + print_lbm_meta>(conv, {conf.template get<"kinematic_viscosity">()}); + + return 0; +} -- cgit v1.2.3