diff options
author | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-08-25 10:34:48 +0200 |
---|---|---|
committer | Claudius "keldu" Holeksa <mail@keldu.de> | 2025-08-25 10:34:48 +0200 |
commit | f17796404c1b0c4817e7232ba16dc667df9d7f68 (patch) | |
tree | 55207cf9baa4d55db38e91814701f924ce1667d9 /c++ | |
parent | 109a98d7d8b77628934e9288f01c64d5b3cdc7f8 (diff) |
Added util to lbm header and changed collision in particles
Diffstat (limited to 'c++')
-rw-r--r-- | c++/environment.hpp | 7 | ||||
-rw-r--r-- | c++/lbm.hpp | 1 |
2 files changed, 7 insertions, 1 deletions
diff --git a/c++/environment.hpp b/c++/environment.hpp index 6b63f16..4915e3a 100644 --- a/c++/environment.hpp +++ b/c++/environment.hpp @@ -7,13 +7,18 @@ namespace kel { namespace lbm { +/** + * Returns the default output directory. + * Located outside the project dir because dispatching build jobs with output data in the git directory + * also copies simulated data which takes a long time. + */ saw::error_or<std::filesystem::path> output_directory(){ const char* home_dir = std::getenv("HOME"); if(not home_dir){ return saw::make_error<saw::err::not_found>("Couldn't find home dir"); } - return std::filesystem::path{home_dir} / ".lbm/"; + return std::filesystem::path{home_dir} / ".lbm"; } } } diff --git a/c++/lbm.hpp b/c++/lbm.hpp index 36609bf..a8d1f96 100644 --- a/c++/lbm.hpp +++ b/c++/lbm.hpp @@ -8,6 +8,7 @@ #include "equilibrium.hpp" #include "macroscopic.hpp" #include "write_vtk.hpp" +#include "util.hpp" #include <forstio/codec/unit/unit_print.hpp> #include <iostream> |