AFLOW
 
Loading...
Searching...
No Matches
init Namespace Reference

Functions

int GetCPUCores ()
 
int InitMachine (bool INIT_VERBOSE, vector< string > &argv, vector< string > &cmds, std::ostream &oss)
 
long GetRAM ()
 
long _GetRAM ()
 
string AFLOW_Projects_Directories (string lib)
 
uint GetTEMP ()
 
double WaitTEMP (double TRESHOLD, ostream &oss, bool LVERBOSE, vector< string > vmessage)
 
void MessageOption (const string &options, const string &routine, vector< string > vusage)
 
void MessageOption (const string &options, const string &routine, string usage)
 
void ErrorOption (const string &options, const string &routine, vector< string > vusage)
 
void ErrorOption (const string &options, const string &routine, string usage)
 
void SchemaFixName (string s1, string s2, string s3)
 
uint InitSchema (bool INIT_VERBOSE)
 
uint InitSchemaInternal (bool INIT_VERBOSE)
 
vector< string > getSchemaKeys (const aurostd::xoption &vschema)
 
vector< string > getSchemaNames (const aurostd::xoption &vschema)
 
vector< string > getSchemaTypes (const aurostd::xoption &vschema)
 
vector< string > getSchemaTypes (const aurostd::xoption &vschema, const vector< string > &keys)
 
int InitMachine (bool INIT_VERBOSE, std::vector< std::string > &argv, std::vector< std::string > &cmds, std::ostream &outf)
 
std::string AFLOW_Projects_Directories (std::string string2load)
 
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))
 
std::vector< std::string > getSchemaTypes (const aurostd::xoption &vschema, const std::vector< std::string > &keys)
 
void MessageOption (const std::string &options, const std::string &routine, std::vector< std::string > vusage)
 
void MessageOption (const std::string &options, const std::string &routine, std::string vusage)
 
void ErrorOption (const std::string &options, const std::string &routine, std::vector< std::string > vusage)
 
void ErrorOption (const std::string &options, const std::string &routine, std::string vusage)
 

Variables

pthread_mutex_t mutex_INIT_GetTEMP = PTHREAD_MUTEX_INITIALIZER
 

Function Documentation

◆ GetCPUCores()

int init::GetCPUCores ( )

Definition at line 85 of file aflow_init.cpp.

◆ InitMachine() [1/2]

int init::InitMachine ( bool INIT_VERBOSE,
vector< string > & argv,
vector< string > & cmds,
std::ostream & oss )

Definition at line 97 of file aflow_init.cpp.

◆ GetRAM()

long init::GetRAM ( )

Definition at line 1836 of file aflow_init.cpp.

◆ _GetRAM()

long init::_GetRAM ( )

Definition at line 1841 of file aflow_init.cpp.

◆ AFLOW_Projects_Directories() [1/2]

string init::AFLOW_Projects_Directories ( string lib)

Definition at line 1870 of file aflow_init.cpp.

◆ GetTEMP()

uint init::GetTEMP ( )

Definition at line 1936 of file aflow_init.cpp.

◆ WaitTEMP() [1/2]

double init::WaitTEMP ( double TRESHOLD,
ostream & oss,
bool LVERBOSE,
vector< string > vmessage )

Definition at line 2008 of file aflow_init.cpp.

◆ MessageOption() [1/4]

void init::MessageOption ( const string & options,
const string & routine,
vector< string > vusage )

Definition at line 2945 of file aflow_init.cpp.

◆ MessageOption() [2/4]

void init::MessageOption ( const string & options,
const string & routine,
string usage )

Definition at line 2958 of file aflow_init.cpp.

◆ ErrorOption() [1/4]

void init::ErrorOption ( const string & options,
const string & routine,
vector< string > vusage )

Definition at line 2963 of file aflow_init.cpp.

◆ ErrorOption() [2/4]

void init::ErrorOption ( const string & options,
const string & routine,
string usage )

Definition at line 2975 of file aflow_init.cpp.

◆ SchemaFixName()

void init::SchemaFixName ( string s1,
string s2,
string s3 )

Definition at line 2986 of file aflow_init.cpp.

◆ InitSchema()

uint init::InitSchema ( bool INIT_VERBOSE)

Definition at line 3009 of file aflow_init.cpp.

◆ InitSchemaInternal()

uint init::InitSchemaInternal ( bool INIT_VERBOSE)

Definition at line 4500 of file aflow_init.cpp.

◆ getSchemaKeys()

std::vector< std::string > init::getSchemaKeys ( const aurostd::xoption & vschema)

Definition at line 4532 of file aflow_init.cpp.

◆ getSchemaNames()

std::vector< std::string > init::getSchemaNames ( const aurostd::xoption & vschema)

Definition at line 4548 of file aflow_init.cpp.

◆ getSchemaTypes() [1/3]

std::vector< std::string > init::getSchemaTypes ( const aurostd::xoption & vschema)

Definition at line 4561 of file aflow_init.cpp.

◆ getSchemaTypes() [2/3]

vector< string > init::getSchemaTypes ( const aurostd::xoption & vschema,
const vector< string > & keys )

Definition at line 4565 of file aflow_init.cpp.

◆ InitMachine() [2/2]

int init::InitMachine ( bool INIT_VERBOSE,
std::vector< std::string > & argv,
std::vector< std::string > & cmds,
std::ostream & outf )

◆ AFLOW_Projects_Directories() [2/2]

std::string init::AFLOW_Projects_Directories ( std::string string2load)

◆ WaitTEMP() [2/2]

double init::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) )

◆ getSchemaTypes() [3/3]

std::vector< std::string > init::getSchemaTypes ( const aurostd::xoption & vschema,
const std::vector< std::string > & keys )

◆ MessageOption() [3/4]

void init::MessageOption ( const std::string & options,
const std::string & routine,
std::vector< std::string > vusage )

◆ MessageOption() [4/4]

void init::MessageOption ( const std::string & options,
const std::string & routine,
std::string vusage )

◆ ErrorOption() [3/4]

void init::ErrorOption ( const std::string & options,
const std::string & routine,
std::vector< std::string > vusage )

◆ ErrorOption() [4/4]

void init::ErrorOption ( const std::string & options,
const std::string & routine,
std::string vusage )

Variable Documentation

◆ mutex_INIT_GetTEMP

pthread_mutex_t init::mutex_INIT_GetTEMP = PTHREAD_MUTEX_INITIALIZER

Definition at line 1935 of file aflow_init.cpp.