diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-10-09 17:29:07 +0200 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-10-09 17:29:07 +0200 |
| commit | f85a7ef199c25cabc834f52ccfc1365fe2a11f1f (patch) | |
| tree | 7978236aa451f532e08ee7d5d5d87d6c29a66508 /examples/throat_clog_2d/sim.cpp | |
| parent | 7095c698f5c5b7e960db9f9347501b8628f94dac (diff) | |
| download | libs-lbm-f85a7ef199c25cabc834f52ccfc1365fe2a11f1f.tar.gz | |
Thing
Diffstat (limited to 'examples/throat_clog_2d/sim.cpp')
| -rw-r--r-- | examples/throat_clog_2d/sim.cpp | 14 |
1 files changed, 10 insertions, 4 deletions
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<void> lbm_main(const saw::data<args::LbmArgs>& 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<sch::ChunkStruct<T,Desc>, encode::Sycl<saw::encode::Native>> lbm_sycl_data{sycl_q}; @@ -216,11 +222,11 @@ saw::error_or<void> k_main(int argc, char** argv){ auto& an = args.template get<"args">(); auto& coupling = an.template get<"coupling">(); - auto resolution_resolve = [&]<typename Cpl>(){ - lbm_main<FloatT,DescT,Cpl,1u>(args); + auto resolution_resolve = [&]<typename Cpl>() -> saw::error_or<void>{ + return lbm_main<FloatT,DescT,Cpl,1u>(args); }; - auto coupling_resolve = [&](){ + auto coupling_resolve = [&]() -> saw::error_or<void> { if(coupling.stl_view() == "hlbm"){ return resolution_resolve.template operator()<method::Hlbm>(); } else if(coupling.stl_view() == "fplbm"){ @@ -230,7 +236,7 @@ saw::error_or<void> k_main(int argc, char** argv){ } }; - coupling_resolve(); + return coupling_resolve(); return saw::make_error<saw::err::critical>("Invalid coupling"); } |
