MCPcopy Create free account
hub / github.com/SeisSol/SeisSol / parseReceiverFile

Function parseReceiverFile

src/ResultWriter/ReceiverWriter.cpp:92–106  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

90}
91
92std::vector<Eigen::Vector3d> parseReceiverFile(const std::string& receiverFileName) {
93 std::vector<Eigen::Vector3d> points{};
94
95 std::ifstream file{receiverFileName};
96 std::string line{};
97 while (std::getline(file, line)) {
98 const bool onlyWhiteSpace = std::all_of(line.begin(), line.end(), [](auto& c) {
99 return std::isspace(c); // This lambda is needed (opt. argument)
100 });
101 if (!onlyWhiteSpace) {
102 points.emplace_back(parseReceiverLine(line));
103 }
104 }
105 return points;
106}
107
108std::string ReceiverWriter::fileName(unsigned pointId) const {
109 std::stringstream fns;

Callers 2

addPointsMethod · 0.85
ReceiverWriter.t.hFile · 0.85

Calls 3

parseReceiverLineFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected