Vulpes
0.1.0
Versatile and parallel compUtational Library for high-order discontinuous Polytopal Element Simulations
Loading...
Searching...
No Matches
env.hpp
Go to the documentation of this file.
1
// ----------------------------------------------------------------------
2
//
3
// Copyright (C) 2024 - 2026 by the Vulpes authors. This file is part of Vulpes.
4
//
5
// Vulpes is free software; you can redistribute it and/or modify it under the
6
// terms of the GNU General Public License as published by the Free Software
7
// Foundation, either version 3 of the License, or (at your option) any later
8
// version.
9
//
10
// Vulpes is distributed in the hope that it will be useful, but WITHOUT ANY
11
// WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
12
// A PARTICULAR PURPOSE. See the GNU General Public License for more details.
13
//
14
// You should have received a copy of the GNU General Public License along with
15
// Vulpes. If not, see <http://www.gnu.org/licenses/>.
16
//
17
// ----------------------------------------------------------------------
18
19
// Author: Pedro Peixoto <ppeixoto@usp.br>
20
21
#pragma once
22
23
#include <cstdlib>
24
#include <string>
25
26
namespace
vulpes
{
27
31
inline
std::string
getVulpesRoot
() {
32
const
char
* env = std::getenv(
"VULPES_ROOT"
);
33
if
(env && env[0] !=
'\0'
) {
34
return
std::string(env);
35
}
36
#ifndef VULPES_SOURCE_DIR
37
#error "VULPES_SOURCE_DIR is not defined -- configure via CMake"
38
#endif
39
return
std::string(VULPES_SOURCE_DIR);
40
}
41
42
}
// namespace vulpes
vulpes
Definition
cell_manager.hpp:38
vulpes::getVulpesRoot
std::string getVulpesRoot()
Definition
env.hpp:31
vulpes
utils
env.hpp
Generated on
for Vulpes by
1.15.0