ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Functions
Input_Conv Namespace Reference

Functions

void tmp_convert ()
 template bridge codes for converting string to other types
 
void Convert ()
 Pass the data members from the INPUT instance(defined in source_io/input.cpp) to GlobalV and GlobalC.
 
template<typename T >
void parse_expression (const std::string &fn, std::vector< T > &vec)
 To parse input parameters as expressions into vectors.
 

Function Documentation

◆ Convert()

void Input_Conv::Convert ( )

Pass the data members from the INPUT instance(defined in source_io/input.cpp) to GlobalV and GlobalC.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parse_expression()

template<typename T >
void Input_Conv::parse_expression ( const std::string &  fn,
std::vector< T > &  vec 
)

To parse input parameters as expressions into vectors.

Template Parameters
T
Parameters
fn(string): expressions such as "3*1 0 2*0.5 3*0"
vec(vector): stores parsing results, for example, "3*1 0 2*0.5 1*1.5" can be parsed as [1, 1, 1, 0, 0.5, 0.5, 1.5]
Here is the call graph for this function:

◆ tmp_convert()

void Input_Conv::tmp_convert ( )

template bridge codes for converting string to other types