gnuastro-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnuastro-commits] master 0d551b4 3/3: Fixes in CosmicCalculator's docum


From: Mohammad Akhlaghi
Subject: [gnuastro-commits] master 0d551b4 3/3: Fixes in CosmicCalculator's documentation
Date: Sat, 22 Oct 2016 22:30:48 +0000 (UTC)

branch: master
commit 0d551b4a61baec94f8edc21ba8f72ffb06e0d765
Author: Mohammad Akhlaghi <address@hidden>
Commit: Mohammad Akhlaghi <address@hidden>

    Fixes in CosmicCalculator's documentation
    
    In the book, the examples at the start of the "Invoking CosmicCalculator"
    section have an equal sign after the short options. This was an error and
    is corrected with this commit.
    
    Francesco Montanari kindly reported this bug, his name was thus also added
    to the `THANKS' file.
    
    In this commit, the precision of printing the values (with the
    `--printparams', or `-P' option) of the densities in CosmicCalculator are
    increased to 5 decimals since 3 was not enough for modern measured values.
    
    This fixes bug #49419.
---
 THANKS             |    1 +
 bin/cosmiccal/ui.c |    6 +++---
 doc/gnuastro.texi  |    4 ++--
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/THANKS b/THANKS
index 8ff8879..6badc73 100644
--- a/THANKS
+++ b/THANKS
@@ -22,6 +22,7 @@ support in Gnuastro. The list is ordered alphabetically.
     Brandon Invergo                      address@hidden
     Mohammad-Reza Khellat                address@hidden
     Alan Lefor                           address@hidden
+    Francesco Montanari                  address@hidden
     Yahya Sefidbakht                     address@hidden
     Richard Stallman                     address@hidden
 
diff --git a/bin/cosmiccal/ui.c b/bin/cosmiccal/ui.c
index b7e7bb7..81be577 100644
--- a/bin/cosmiccal/ui.c
+++ b/bin/cosmiccal/ui.c
@@ -195,11 +195,11 @@ printvalues(FILE *fp, struct cosmiccalparams *p)
 
   fprintf(fp, "\n# Current densities per current critical density:\n");
   if(up->olambdaset)
-    fprintf(fp, CONF_SHOWFMT"%.3f\n", "olambda", p->olambda);
+    fprintf(fp, CONF_SHOWFMT"%.5f\n", "olambda", p->olambda);
   if(up->omatterset)
-    fprintf(fp, CONF_SHOWFMT"%.3f\n", "omatter", p->omatter);
+    fprintf(fp, CONF_SHOWFMT"%.5f\n", "omatter", p->omatter);
   if(up->oradiationset)
-    fprintf(fp, CONF_SHOWFMT"%.3f\n", "oradiation", p->oradiation);
+    fprintf(fp, CONF_SHOWFMT"%.5f\n", "oradiation", p->oradiation);
 
 
   /* For the operating mode, first put the macro to print the common
diff --git a/doc/gnuastro.texi b/doc/gnuastro.texi
index ef27f2a..b0cfc64 100644
--- a/doc/gnuastro.texi
+++ b/doc/gnuastro.texi
@@ -14326,8 +14326,8 @@ $ astcosmiccal [OPTION...] ...
 One line examples:
 
 @example
-$ astcosmiccal --onlyvolume -z=0.8
-$ astcosmiccal -l=0.6964 -m=0.3036 -z=2.1
+$ astcosmiccal --onlyvolume -z 0.8
+$ astcosmiccal -l0.6964 -m0.3036 -z2.1
 $ astcosmiccal --olambda=0.6964 --omatter=0.3036 --redshift=2.1
 @end example
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]