summaryrefslogtreecommitdiff
path: root/lib/c++/environment.hpp
diff options
context:
space:
mode:
authorClaudius "keldu" Holeksa <mail@keldu.de>2025-11-05 13:38:04 +0100
committerClaudius "keldu" Holeksa <mail@keldu.de>2025-11-05 13:38:04 +0100
commitb9aacd9c2fdc61721c8ca3e1b40ebc92daa3772e (patch)
treebec510bca7b72b8fe63b7f8cec1fd78b7ff03bc2 /lib/c++/environment.hpp
parentf5c40005f576b5a3416c2cda8c60e5f100810ddb (diff)
downloadlibs-lbm-b9aacd9c2fdc61721c8ca3e1b40ebc92daa3772e.tar.gz
Reworking structure
Diffstat (limited to 'lib/c++/environment.hpp')
-rw-r--r--lib/c++/environment.hpp24
1 files changed, 0 insertions, 24 deletions
diff --git a/lib/c++/environment.hpp b/lib/c++/environment.hpp
deleted file mode 100644
index 4915e3a..0000000
--- a/lib/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";
-}
-}
-}