AFLOW
 
Loading...
Searching...
No Matches
aflow_init.h
Go to the documentation of this file.
1
2#ifndef AFLOW_INIT_H
3#define AFLOW_INIT_H
4
5#include <iostream>
6#include <string>
7#include <vector>
8
9#include "AUROSTD/aurostd.h"
11
12#include "aflow_aflowrc.h"
13#include "aflow_defs.h"
14#include "flow/aflow_xclasses.h"
15
16// --------------------------------------------------------------------------
17// aflow_init.cpp
18namespace init {
19 int GetCPUCores();
20 int InitMachine(bool INIT_VERBOSE, std::vector<std::string>& argv, std::vector<std::string>& cmds, std::ostream& outf); // ME20200724 - changed to int
21 std::string AFLOW_Projects_Directories(std::string string2load);
22 long GetRAM();
23 uint GetTEMP();
24 double WaitTEMP(double TRESHOLD = AFLOWRC_AFLOW_CORE_TEMPERATURE_HALT, std::ostream& oss = std::cout, bool LVERBOSE = false, std::vector<std::string> vmessage = std::vector<std::string>(0));
25 uint InitSchema(bool INIT_VERBOSE);
26 uint InitSchemaInternal(bool INIT_VERBOSE); // ME20220208
27 std::vector<std::string> getSchemaKeys(const aurostd::xoption& vschema); // ME20220223
28 std::vector<std::string> getSchemaNames(const aurostd::xoption& vschema); // CO20200520
29 std::vector<std::string> getSchemaTypes(const aurostd::xoption& vschema); // ME20220223
30 std::vector<std::string> getSchemaTypes(const aurostd::xoption& vschema, const std::vector<std::string>& keys); // ME20220223
31} // namespace init
32
33uint AFLOW_getTEMP(const std::vector<std::string>& argv);
34uint AFLOW_monitor(const std::vector<std::string>& argv);
35double AFLOW_checkMEMORY(const std::string& progname = "", double = 102.0);
36bool CheckMaterialServer(const std::string& message); // CO20200624
38
39class _xvasp; // forward declaration
40
41bool GetVASPBinaryFromLOCK(const std::string& directory, std::string& vasp_bin); // CO20210315
42bool GetVASPBinaryFromLOCK(const std::string& directory, std::string& vasp_bin, int& ncpus); // CO20210315
43void processFlagsFromLOCK(_xvasp& xvasp, _vflags& vflags, aurostd::xoption& xfixed); // CO20210315
44bool AFLOW_VASP_instance_running(); // CO20210315
45bool AFLOW_VASP_instance_running(const std::string& pgid); // SD20220330
46bool AFLOW_MONITOR_instance_running(const _aflags& aflags); // CO20210315
47bool VASP_instance_running(const std::string& vasp_bin); // CO20210315
48bool VASP_instance_running(const std::string& vasp_bin, const std::string& pgid); // SD20220330
49void AFLOW_monitor_VASP(); // CO20210315
50void AFLOW_monitor_VASP(const std::string& directory); // CO20210315
51
52std::string Message(const std::string& filename, const std::string& list2print = _AFLOW_MESSAGE_DEFAULTS_); // CO20200713
53std::string Message(const std::string& filename, const _aflags& aflags, const std::string& list2print = _AFLOW_MESSAGE_DEFAULTS_); // CO20200713
54bool AFLOW_BlackList(const std::string& h); // CO20200713
55namespace init {
56 void MessageOption(const std::string& options, const std::string& routine, std::vector<std::string> vusage); // CO20200624 - should go to cerr for web //DX20200724 - bool to void
57 void MessageOption(const std::string& options, const std::string& routine, std::string vusage); // CO20200624 - should go to cerr for web //DX20200724 - bool to void
58 void ErrorOption(const std::string& options, const std::string& routine, std::vector<std::string> vusage); // CO20200624 - should go to cerr for web //DX20200724 - bool to void
59 void ErrorOption(const std::string& options, const std::string& routine, std::string vusage); // CO20200624 - should go to cerr for web //DX20200724 - bool to void
60} // namespace init
61
62#endif // AFLOW_INIT_H
#define AFLOWRC_AFLOW_CORE_TEMPERATURE_HALT
#define _AFLOW_MESSAGE_DEFAULTS_
Definition aflow_defs.h:49
void AFLOW_monitor_VASP()
bool GetVASPBinaryFromLOCK(const std::string &directory, std::string &vasp_bin)
std::string Message(const std::string &filename, const std::string &list2print=_AFLOW_MESSAGE_DEFAULTS_)
bool AFLOW_MONITOR_instance_running(const _aflags &aflags)
bool VASP_instance_running(const std::string &vasp_bin)
uint AFLOW_getTEMP(const std::vector< std::string > &argv)
uint AFLOW_monitor(const std::vector< std::string > &argv)
double AFLOW_checkMEMORY(const std::string &progname="", double=102.0)
bool CheckMaterialServer()
bool AFLOW_BlackList(const std::string &h)
void processFlagsFromLOCK(_xvasp &xvasp, _vflags &vflags, aurostd::xoption &xfixed)
bool AFLOW_VASP_instance_running()
unsigned uint
Definition aurostd.h:39
double WaitTEMP(double TRESHOLD, ostream &oss, bool LVERBOSE, vector< string > vmessage)
long GetRAM()
uint InitSchema(bool INIT_VERBOSE)
vector< string > getSchemaKeys(const aurostd::xoption &vschema)
int InitMachine(bool INIT_VERBOSE, vector< string > &argv, vector< string > &cmds, std::ostream &oss)
uint GetTEMP()
uint InitSchemaInternal(bool INIT_VERBOSE)
void ErrorOption(const string &options, const string &routine, vector< string > vusage)
vector< string > getSchemaNames(const aurostd::xoption &vschema)
string AFLOW_Projects_Directories(string lib)
vector< string > getSchemaTypes(const aurostd::xoption &vschema)
void MessageOption(const string &options, const string &routine, vector< string > vusage)
int GetCPUCores()