From d04f39fc5ea1e40084c6bf2faf59faa0b1548340 Mon Sep 17 00:00:00 2001
From: Nora Abi Akar <nora.abiakar@gmail.com>
Date: Tue, 24 Mar 2020 09:12:57 +0100
Subject: [PATCH] time_type = double (#984)

* Change `time_type` to `double` to support time-step accuracy in longer running simulations.
* Change connection delay to `float` from `time_type` in order to avoid unnecessary memory overheads.
---
 arbor/connection.hpp                 | 2 +-
 arbor/include/arbor/common_types.hpp | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/arbor/connection.hpp b/arbor/connection.hpp
index 9ed342f8..a114aa80 100644
--- a/arbor/connection.hpp
+++ b/arbor/connection.hpp
@@ -36,8 +36,8 @@ public:
 private:
     cell_member_type source_;
     cell_member_type destination_;
+    float delay_;
     float weight_;
-    time_type delay_;
     cell_size_type index_on_domain_;
 };
 
diff --git a/arbor/include/arbor/common_types.hpp b/arbor/include/arbor/common_types.hpp
index d756467e..11b11efd 100644
--- a/arbor/include/arbor/common_types.hpp
+++ b/arbor/include/arbor/common_types.hpp
@@ -54,7 +54,7 @@ ARB_DEFINE_LEXICOGRAPHIC_ORDERING(cell_member_type,(a.gid,a.index),(b.gid,b.inde
 
 // For storing time values [ms]
 
-using time_type = float;
+using time_type = double;
 constexpr time_type terminal_time = std::numeric_limits<time_type>::max();
 
 // Extra contextual information associated with a probe.
-- 
GitLab