Skip to content

Commit

Permalink
Benchmark: print res_goal in scientific notation
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Grützmacher committed Jan 14, 2021
1 parent e08c6a3 commit 0bba35d
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions benchmark/solver/solver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <iomanip>
#include <iostream>
#include <limits>
#include <sstream>
#include <vector>


Expand Down Expand Up @@ -415,12 +416,14 @@ int main(int argc, char *argv[])
"format\n\n";
initialize_argument_parsing(&argc, &argv, header, format);

std::string extra_information = "Running " + FLAGS_solvers + " with " +
std::to_string(FLAGS_max_iters) +
" iterations and residual goal of " +
std::to_string(FLAGS_rel_res_goal) +
"\nThe number of right hand sides is " +
std::to_string(FLAGS_nrhs) + "\n";
std::stringstream ss_rel_res_goal;
ss_rel_res_goal << std::scientific << FLAGS_rel_res_goal;

std::string extra_information =
"Running " + FLAGS_solvers + " with " +
std::to_string(FLAGS_max_iters) + " iterations and residual goal of " +
ss_rel_res_goal.str() + "\nThe number of right hand sides is " +
std::to_string(FLAGS_nrhs) + "\n";
print_general_information(extra_information);

auto exec = get_executor();
Expand Down

0 comments on commit 0bba35d

Please sign in to comment.