Skip to content

Commit

Permalink
fixed ug in reading statobs
Browse files Browse the repository at this point in the history
  • Loading branch information
fradav committed Jan 18, 2021
1 parent c038715 commit 6724608
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/readstatobs.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ vector<double> readStatObs(const std::string &path) {
ifstream statobsStream(path,ios::in);
statobsStream >> noskipws;
const std::string sS(istream_iterator<char>{statobsStream}, {});
const regex stat_re(R"#((-?\d+\.\d+)\w)#");
const regex stat_re(R"#(\s(-?\d+\.\d+)\s)#");
sregex_token_iterator itstat(begin(sS), end(sS), stat_re, {1});
vector<double> statobs;
auto it = itstat;
Expand Down
3 changes: 2 additions & 1 deletion test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ add_definitions(-DRFTEST_TOLERANCE=${RFTEST_TOLERANCE})

### HDF5 et HighFive
### HDF5
find_package(hdf5 CONFIG REQUIRED)
# find_package(hdf5 CONFIG REQUIRED)
find_package(HDF5 COMPONENTS CXX)
find_package(HighFive CONFIG REQUIRED)

find_package(Catch2 CONFIG REQUIRED)
Expand Down
Loading

0 comments on commit 6724608

Please sign in to comment.