Get the center from the job info file and return as a Real Vector
| 346 | |
| 347 | // Get the center from the job info file and return as a Real Vector |
| 348 | Vector<Real> GetCenter (const string pltfile) { |
| 349 | auto center_str = GetVarFromJobInfo(pltfile, "center"); |
| 350 | |
| 351 | // split string |
| 352 | std::istringstream iss {center_str}; |
| 353 | Vector<Real> center; |
| 354 | |
| 355 | std::string s; |
| 356 | while (std::getline(iss, s, ',')) |
| 357 | center.push_back(stod(s)); |
| 358 | |
| 359 | return center; |
| 360 | } |
no test coverage detected