MCPcopy Create free account
hub / github.com/SZAILAB/MaterialDFT-Demo / parse_real_array

Function parse_real_array

cpp_core/src/pseudo_upf.cpp:77–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

75}
76
77std::vector<double> parse_real_array(const std::string& block, const std::string& name) {
78 std::vector<double> out;
79 std::istringstream iss(block);
80 double value = 0.0;
81 while (iss >> value) {
82 out.push_back(value);
83 }
84 if (out.empty()) {
85 throw std::runtime_error("parse_upf_minimal: parsed empty numeric array for " + name);
86 }
87 return out;
88}
89
90struct BetaTagBlock {
91 std::string header;

Callers 1

parse_upf_minimalFunction · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected