From b8e29192da855447c98a2195c350023064386e81 Mon Sep 17 00:00:00 2001 From: tayral Date: Sun, 5 Jan 2014 16:56:41 +0100 Subject: [PATCH] gfs: Fixed bug in index_to_point. --- triqs/gfs/meshes/matsubara_freq.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/triqs/gfs/meshes/matsubara_freq.hpp b/triqs/gfs/meshes/matsubara_freq.hpp index 3b7e9f5a..16b7ed60 100644 --- a/triqs/gfs/meshes/matsubara_freq.hpp +++ b/triqs/gfs/meshes/matsubara_freq.hpp @@ -64,7 +64,7 @@ namespace gfs { long size() const { return (_positive_only ? n_max : 2 * n_max + (_dom.statistic == Boson ? 1 : 2)); } /// From an index of a point in the mesh, returns the corresponding point in the domain - domain_pt_t index_to_point(index_t ind) const { return 1_j * M_PI * (2 * ind + _dom.statistic == Fermion) / _dom.beta; } + domain_pt_t index_to_point(index_t ind) const { return 1_j * M_PI * (2 * ind + (_dom.statistic == Fermion)) / _dom.beta; } /// Flatten the index in the positive linear index for memory storage (almost trivial here). long index_to_linear(index_t ind) const { return ind + index_start(); }