summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/poiseulle_2d.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/examples/poiseulle_2d.cpp b/examples/poiseulle_2d.cpp
index 3e636f9..8e1ba94 100644
--- a/examples/poiseulle_2d.cpp
+++ b/examples/poiseulle_2d.cpp
@@ -303,6 +303,12 @@ void lbm_step(
int main(int argc, char** argv){
using namespace kel::lbm;
using dfi = df_info<sch::T,sch::D2Q9>;
+ auto eo_lbm_dir = output_directory();
+ if(eo_lbm_dir.is_error()){
+ return -1;
+ }
+ auto& lbm_dir = eo_lbm_dir.get_value();
+ auto out_dir = lbm_dir / "poiseulle_particles_channel_2d";
std::string_view cfg_file_name = "config.json";
if(argc > 1){
@@ -377,9 +383,9 @@ int main(int argc, char** argv){
rho = rho * saw::data<sch::T>{dfi::cs2};
}, {{0u,0u}}, meta);
- std::string vtk_f_name{"tmp/poiseulle_2d_"};
+ std::string vtk_f_name{"poiseulle_2d_"};
vtk_f_name += std::to_string(i) + ".vtk";
- write_vtk_file(vtk_f_name, macros);
+ write_vtk_file(out_dir / vtk_f_name, macros);
}
lbm_step(lattice, i);