Pārlūkot izejas kodu

Use julian date conversion

Eric Ramat 7 gadi atpakaļ
vecāks
revīzija
2936ac71ea
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      src/artis/observer/Output.hpp

+ 3 - 2
src/artis/observer/Output.hpp

@@ -52,6 +52,7 @@ public:
             double begin = it->second->begin();
             double end = it->second->end();
 
+            o.precision(10);
             // write header
             o << "time";
             for (typename View < U, V >::Values::const_iterator
@@ -62,8 +63,8 @@ public:
 
             // write values
             for (double t = begin; t <= end; ++t) {
-                // o << utils::DateTime::toJulianDay(t);
-                o << t;
+                o << utils::DateTime::toJulianDay(t);
+                // o << t;
                 for (typename View < U, V >::Values::const_iterator itv =
                          values.begin(); itv != values.end(); ++itv) {
                     typename View < U, V >::Value::const_iterator itp =