Skip to content

Commit

Permalink
Change to use different file names for the two validations
Browse files Browse the repository at this point in the history
  • Loading branch information
range3 committed Aug 31, 2022
1 parent c585414 commit 6cb3b1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/rdbench/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -565,11 +565,11 @@ int main(int argc, char *argv[]) {
vd u(V, 0.0), v(V, 0.0);
vd u2(V, 0.0), v2(V, 0.0);
int step;
int file_idx = 1;
int file_idx = 0;
init(u, v, info);

if (info.validate) {
if (!validate_file_io(u, 0, info)) {
if (!validate_file_io(u, file_idx++, info)) {
throw std::runtime_error("Read validation failed");
}
}
Expand Down Expand Up @@ -598,7 +598,7 @@ int main(int argc, char *argv[]) {
}

if (info.validate) {
if (!validate_file_io(u, 0, info)) {
if (!validate_file_io(u, file_idx++, info)) {
throw std::runtime_error("Read validation failed");
}
}
Expand Down

0 comments on commit 6cb3b1b

Please sign in to comment.