From f85a7ef199c25cabc834f52ccfc1365fe2a11f1f Mon Sep 17 00:00:00 2001 From: "Claudius \"keldu\" Holeksa" Date: Fri, 9 Oct 2026 17:29:07 +0200 Subject: Thing --- examples/throat_clog_2d/sim.cpp | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) (limited to 'examples/throat_clog_2d/sim.cpp') diff --git a/examples/throat_clog_2d/sim.cpp b/examples/throat_clog_2d/sim.cpp index b3b3cef..4084353 100644 --- a/examples/throat_clog_2d/sim.cpp +++ b/examples/throat_clog_2d/sim.cpp @@ -93,6 +93,12 @@ saw::error_or lbm_main(const saw::data& args){ return eov; } } + { + auto eov = write_vtk_file(out_dir,"initial_state_macro",0u,*lbm_macro_data_ptr); + if(eov.is_error()){ + return eov; + } + } sycl_q.wait(); saw::data, encode::Sycl> lbm_sycl_data{sycl_q}; @@ -216,11 +222,11 @@ saw::error_or k_main(int argc, char** argv){ auto& an = args.template get<"args">(); auto& coupling = an.template get<"coupling">(); - auto resolution_resolve = [&](){ - lbm_main(args); + auto resolution_resolve = [&]() -> saw::error_or{ + return lbm_main(args); }; - auto coupling_resolve = [&](){ + auto coupling_resolve = [&]() -> saw::error_or { if(coupling.stl_view() == "hlbm"){ return resolution_resolve.template operator()(); } else if(coupling.stl_view() == "fplbm"){ @@ -230,7 +236,7 @@ saw::error_or k_main(int argc, char** argv){ } }; - coupling_resolve(); + return coupling_resolve(); return saw::make_error("Invalid coupling"); } -- cgit v1.3.1