From 067c2f2084175d8c1b89d5e81ecb3098bafed692 Mon Sep 17 00:00:00 2001 From: Gareth Tribello <gt@eider.phy.qub.ac.uk> Date: Wed, 24 Sep 2014 12:50:45 +0100 Subject: [PATCH] Added error message that was missing in grids (cherry picked from commit ab739533b70f35129e3b0708f9184cd03833e7da) --- src/tools/Grid.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tools/Grid.cpp b/src/tools/Grid.cpp index 5194f54c6..d5020095c 100644 --- a/src/tools/Grid.cpp +++ b/src/tools/Grid.cpp @@ -580,6 +580,7 @@ Grid* Grid::create(const std::string& funcl, std::vector<Value*> args, IFile& if // Retrieve names for fields for(unsigned i=0;i<args.size();++i) labels[i]=args[i]->getName(); // And read the stuff from the header + plumed_massert( ifile.FieldExist( funcl ) , "no column labelled " + funcl + " in in grid input"); for(unsigned i=0;i<args.size();++i){ ifile.scanField( "min_" + labels[i], gmin[i]); ifile.scanField( "max_" + labels[i], gmax[i]); -- GitLab