[PPL-devel] [GIT] ppl/ppl(master): Augment the precision with which floating point numbers are printed in error messages .
Roberto Bagnara
bagnara at cs.unipr.it
Sat Aug 28 13:59:22 CEST 2010
Module: ppl/ppl
Branch: master
Commit: cb82804e0fac7ff10ce2af5d6cd7a98fcae678f9
URL: http://www.cs.unipr.it/git/gitweb.cgi?p=ppl/ppl.git;a=commit;h=cb82804e0fac7ff10ce2af5d6cd7a98fcae678f9
Author: Roberto Bagnara <bagnara at cs.unipr.it>
Date: Sat Aug 28 13:58:44 2010 +0200
Augment the precision with which floating point numbers are printed in error messages.
---
demos/ppl_lpsol/ppl_lpsol.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/demos/ppl_lpsol/ppl_lpsol.c b/demos/ppl_lpsol/ppl_lpsol.c
index 8837640..cf3a6dd 100644
--- a/demos/ppl_lpsol/ppl_lpsol.c
+++ b/demos/ppl_lpsol/ppl_lpsol.c
@@ -649,8 +649,8 @@ maybe_check_results(const int ppl_status, const double ppl_optimum_value) {
: lpx_mip_obj_val(glpk_lp);
if (fabs(ppl_optimum_value - glpk_optimum_value) > check_threshold) {
- error("check failed: for GLPK the problem's optimum is %.10g,"
- " not %.10g", glpk_optimum_value, ppl_optimum_value);
+ error("check failed: for GLPK the problem's optimum is %.20g,"
+ " not %.20g", glpk_optimum_value, ppl_optimum_value);
check_results_failed = 1;
}
}
More information about the PPL-devel
mailing list