seams-core v2.6.0
libyodaLib, the C++ engine of d-SEAMS
☾
Toggle main menu visibility
Loading...
Searching...
No Matches
seams_config.hpp
Go to the documentation of this file.
1
#ifndef SEAMS_CONFIG_HPP_
2
#define SEAMS_CONFIG_HPP_
3
4
#include <ostream>
5
#include <string>
6
#include <string_view>
7
8
#include <
site.hpp
>
9
19
20
namespace
site
{
21
bool
iceScoreAllowed
(
Family
f);
22
const
char
*
refuseIceScore
(
Family
f);
23
const
char
*
familyName
(
Family
f);
24
Family
parseFamily
(std::string_view name);
25
}
// namespace site
26
27
namespace
seams::cfg
{
28
29
struct
Runtime
{
30
int
frame
= 1;
31
int
last
= 0;
32
int
jobs
= 1;
33
int
type
= 0;
34
double
cutoff
= 3.5;
35
int
k
= 4;
36
std::string
graph
=
"seeded"
;
37
site::Family
family
=
site::Family::waterIce
;
38
double
resident
= 0.80;
39
double
cell
= 3.0;
40
int
tpp
= 0;
41
int
block
= 0;
42
bool
offload
=
false
;
43
std::string
fennel
;
44
std::string
luaPath
;
45
std::string
source
;
46
};
47
49
std::string
pathFromArgv
(
int
argc,
char
**argv);
50
53
void
applyFile
(
const
std::string &path,
bool
required);
54
56
Runtime
load
(std::string_view explicitFile = {});
57
60
void
exportEnviron
(
const
Runtime
&
cfg
);
61
62
void
dump
(
const
Runtime
&
cfg
, std::ostream &os);
63
64
}
// namespace seams::cfg
65
66
#endif
seams::cfg
Definition
seams_config.hpp:27
seams::cfg::applyFile
void applyFile(const std::string &path, bool required)
Apply a dotenv file: set KEY=VAL only when KEY is not already in the environment.
seams::cfg::pathFromArgv
std::string pathFromArgv(int argc, char **argv)
Scan argv for –config PATH / –config=PATH.
seams::cfg::dump
void dump(const Runtime &cfg, std::ostream &os)
seams::cfg::exportEnviron
void exportEnviron(const Runtime &cfg)
Write Runtime fields into the environment so libraries that only call getenv (linkcell,...
seams::cfg::load
Runtime load(std::string_view explicitFile={})
Load file (if any) then read the environment into a Runtime.
site
Definition
density.hpp:22
site::iceScoreAllowed
bool iceScoreAllowed(Family f)
site::familyName
const char * familyName(Family f)
site::refuseIceScore
const char * refuseIceScore(Family f)
site::parseFamily
Family parseFamily(std::string_view name)
site::Family
Family
Definition
site.hpp:40
site::Family::waterIce
@ waterIce
Definition
site.hpp:41
site.hpp
Per-atom site chemistry, separate from CHILL ice labels.
seams::cfg::Runtime
Definition
seams_config.hpp:29
seams::cfg::Runtime::source
std::string source
Definition
seams_config.hpp:45
seams::cfg::Runtime::offload
bool offload
Definition
seams_config.hpp:42
seams::cfg::Runtime::cell
double cell
Definition
seams_config.hpp:39
seams::cfg::Runtime::last
int last
Definition
seams_config.hpp:31
seams::cfg::Runtime::cutoff
double cutoff
Definition
seams_config.hpp:34
seams::cfg::Runtime::graph
std::string graph
Definition
seams_config.hpp:36
seams::cfg::Runtime::frame
int frame
Definition
seams_config.hpp:30
seams::cfg::Runtime::resident
double resident
Definition
seams_config.hpp:38
seams::cfg::Runtime::k
int k
Definition
seams_config.hpp:35
seams::cfg::Runtime::family
site::Family family
Definition
seams_config.hpp:37
seams::cfg::Runtime::tpp
int tpp
Definition
seams_config.hpp:40
seams::cfg::Runtime::jobs
int jobs
Definition
seams_config.hpp:32
seams::cfg::Runtime::block
int block
Definition
seams_config.hpp:41
seams::cfg::Runtime::fennel
std::string fennel
Definition
seams_config.hpp:43
seams::cfg::Runtime::type
int type
Definition
seams_config.hpp:33
seams::cfg::Runtime::luaPath
std::string luaPath
Definition
seams_config.hpp:44
src
include
internal
seams_config.hpp
Generated by
1.17.0
Generated by
Doxygen 1.17.0
Analytics by
Antics
provided by
TurtleTech ehf