From 29b9f7baf27e0a146d309197d888a3c06f48e6fe Mon Sep 17 00:00:00 2001
From: Giovanni Bussi <giovanni.bussi@gmail.com>
Date: Fri, 14 Feb 2014 13:05:11 +0100
Subject: [PATCH] Fix

It was not compiling on BGQ
---
 CHANGES/v2.0.txt          | 1 +
 src/analysis/Analysis.cpp | 2 +-
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/CHANGES/v2.0.txt b/CHANGES/v2.0.txt
index 6b37c8a50..60a743be0 100644
--- a/CHANGES/v2.0.txt
+++ b/CHANGES/v2.0.txt
@@ -105,6 +105,7 @@ Unreleased changes (will be included in 2.0.3)
 See <a href="http://github.com/plumed/plumed2/tree/v2.0">branch v2.0 on git repository</a>.
 
 For users:
+- Now compiles on Blue Gene Q with IBM compilers.
 - Several small fixes in documentation and log file.
 
 For developers:
diff --git a/src/analysis/Analysis.cpp b/src/analysis/Analysis.cpp
index 5d1d835d4..ea3599049 100644
--- a/src/analysis/Analysis.cpp
+++ b/src/analysis/Analysis.cpp
@@ -133,7 +133,7 @@ ofmt("%f")
           parse("RUN",freq );
           log.printf("  running analysis every %u steps\n",freq);
           if( freq%getStride()!= 0 ) error("Frequncy of running is not a multiple of the stride");
-          ndata=std::floor(freq/getStride() );
+          ndata=freq/getStride();
           data.resize( ndata );
           for(unsigned i=0;i<ndata;++i){ data[i].resize( getNumberOfArguments() ); }
           logweights.resize( ndata );
-- 
GitLab