if(gmin.size()!=getNumberOfArguments())plumed_merror("Wrong number of values for GRID_MIN: they should be equal to the number of arguments");
if(gmin.size()!=getNumberOfArguments())error("Wrong number of values for GRID_MIN: they should be equal to the number of arguments");
parseVector("GRID_MAX",gmax);
if(gmax.size()!=getNumberOfArguments())plumed_merror("Wrong number of values for GRID_MAX: they should be equal to the number of arguments");
if(gmax.size()!=getNumberOfArguments())error("Wrong number of values for GRID_MAX: they should be equal to the number of arguments");
parseVector("GRID_BIN",gbin);
if(gbin.size()!=getNumberOfArguments()&&gbin.size()!=0)plumed_merror("Wrong number of values for GRID_BIN: they should be equal to the number of arguments");
if(gbin.size()!=getNumberOfArguments()&&gbin.size()!=0)error("Wrong number of values for GRID_BIN: they should be equal to the number of arguments");