diff options
| author | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-31 17:23:03 +0100 |
|---|---|---|
| committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2026-01-31 17:31:57 +0100 |
| commit | be2164a504bf8f825d7a76af9504633adcf2596f (patch) | |
| tree | e46644027ca897a3b0c6a9857c3ab6410e83f2e9 /examples/poiseulle_particles_2d_gpu | |
| parent | a7a741216ef5e4513b2dc9272ebe0facf58c4ded (diff) | |
| download | libs-lbm-be2164a504bf8f825d7a76af9504633adcf2596f.tar.gz | |
Adding vtk writing
Diffstat (limited to 'examples/poiseulle_particles_2d_gpu')
| -rw-r--r-- | examples/poiseulle_particles_2d_gpu/sim.cpp | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/examples/poiseulle_particles_2d_gpu/sim.cpp b/examples/poiseulle_particles_2d_gpu/sim.cpp index 255aa6d..3f3a584 100644 --- a/examples/poiseulle_particles_2d_gpu/sim.cpp +++ b/examples/poiseulle_particles_2d_gpu/sim.cpp @@ -210,6 +210,21 @@ saw::error_or<void> lbm_main(int argc, char** argv){ return eov; } } + { + auto eov = dev.copy_to_host(lbm_sycl_data,*lbm_data_ptr); + if(eov.is_error()){ + return eov; + } + } + { + std::string file_name = "t_"; + file_name += std::to_string(i.get()); + file_name += ".vtk"; + auto eov = write_vtk_file(file_name, *lbm_data_ptr); + if(eov.is_error()){ + return eov; + } + } } sycl_q.wait(); |
