From ff290e8c1443f68fdc6c9079213537ad38df296c Mon Sep 17 00:00:00 2001
From: Giovanni Bussi <giovanni.bussi@gmail.com>
Date: Wed, 21 Oct 2015 08:16:33 +0200
Subject: [PATCH] Added crash

Related to #175
---
 src/analysis/Histogram.cpp | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/analysis/Histogram.cpp b/src/analysis/Histogram.cpp
index fdd8f1452..6d9271e62 100644
--- a/src/analysis/Histogram.cpp
+++ b/src/analysis/Histogram.cpp
@@ -224,6 +224,7 @@ void Histogram::performAnalysis(){
 
   Grid* gg; IFile oldf; oldf.link(*this); 
   if( usingMemory() && oldf.FileExist(gridfname) ){
+      if(fenergy) error("FREE-ENERGY only works with USE_ALL_DATA");
       oldf.open(gridfname);
       gg = Grid::create( "probs", getArguments(), oldf, gmin, gmax, gbin, false, false, false );
       oldf.close();
-- 
GitLab