Get the center from the job info file and return as a Real Vector
| 455 | |
| 456 | // Get the center from the job info file and return as a Real Vector |
| 457 | Vector<Real> GetCenter (const std::string pltfile) { |
| 458 | auto center_str = GetVarFromJobInfo(pltfile, "center"); |
| 459 | |
| 460 | // split string |
| 461 | std::istringstream iss {center_str}; |
| 462 | Vector<Real> center; |
| 463 | |
| 464 | std::string s; |
| 465 | while (std::getline(iss, s, ',')) |
| 466 | center.push_back(stod(s)); |
| 467 | |
| 468 | return center; |
| 469 | } |
| 470 | |
| 471 | // |
| 472 | // Print usage info |
no test coverage detected