seams-core v2.14.0
libyodaLib, the C++ engine of d-SEAMS
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
20namespace site {
22const char *refuseIceScore(Family f);
23const char *familyName(Family f);
24Family parseFamily(std::string_view name);
25} // namespace site
26
27namespace seams::cfg {
28
29struct Runtime {
30 int frame = 1;
31 int last = 0;
32 int jobs = 1;
33 int type = 0;
34 double cutoff = 3.5;
35 std::string cageEdge = "2.65,3.15";
36 int k = 4;
37 std::string graph = "seeded";
39 double resident = 0.80;
40 double cell = 3.0;
41 int tpp = 0;
42 int block = 0;
43 bool offload = false;
44 bool carry = true;
45 std::string fennel;
46 std::string luaPath;
47 std::string source;
48};
49
51std::string pathFromArgv(int argc, char **argv);
52
55void applyFile(const std::string &path, bool required);
56
58Runtime load(std::string_view explicitFile = {});
59
63
64void dump(const Runtime &cfg, std::ostream &os);
65
66} // namespace seams::cfg
67
68#endif
void applyFile(const std::string &path, bool required)
Apply a dotenv file: set KEY=VAL only when KEY is not already in the environment.
std::string pathFromArgv(int argc, char **argv)
Scan argv for –config PATH / –config=PATH.
void dump(const Runtime &cfg, std::ostream &os)
void exportEnviron(const Runtime &cfg)
Write Runtime fields into the environment so libraries that only call getenv (linkcell,...
Runtime load(std::string_view explicitFile={})
Load file (if any) then read the environment into a Runtime.
bool iceScoreAllowed(Family f)
const char * familyName(Family f)
const char * refuseIceScore(Family f)
Family parseFamily(std::string_view name)
Family
Definition site.hpp:41
Per-atom site chemistry, separate from CHILL ice labels.