| 75 | } |
| 76 | |
| 77 | std::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 | |
| 90 | struct BetaTagBlock { |
| 91 | std::string header; |
no test coverage detected