summaryrefslogtreecommitdiff
path: root/c++/environment.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-10-18 18:01:14 +0200
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-10-18 18:01:14 +0200
commit24bf28a8fb9cc8c3a90b77de9b60728bece7885d (patch)
treedfcbfcb8775bf96847d4a187695158b968902889 /c++/environment.hpp
parenta980da34513a9ad41e309e66432fcb80ddaf2e31 (diff)
downloadlibs-lbm-24bf28a8fb9cc8c3a90b77de9b60728bece7885d.tar.gz
Moving project structure for more less compilation
Diffstat (limited to 'c++/environment.hpp')
-rw-r--r--c++/environment.hpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/c++/environment.hpp b/c++/environment.hpp
deleted file mode 100644
index 4915e3a..0000000
--- a/c++/environment.hpp
+++ /dev/null
@@ -1,24 +0,0 @@
-#pragma once
-
-#include <forstio/error.hpp>
-#include <filesystem>
-#include <cstdlib>
-
-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";
-}
-}
-}