Skip to content
Snippets Groups Projects
Commit 8da42e04 authored by Giovanni Bussi's avatar Giovanni Bussi
Browse files

Better check

this check should be done also in NDEBUG mode
parent b9415b74
No related branches found
No related tags found
No related merge requests found
...@@ -1055,7 +1055,7 @@ double MetaD::evaluateGaussian ...@@ -1055,7 +1055,7 @@ double MetaD::evaluateGaussian
double tmpcv[1]; // tmp array with cv (to be used with doInt_) double tmpcv[1]; // tmp array with cv (to be used with doInt_)
if(cv.size()>0) pcv=&cv[0]; if(cv.size()>0) pcv=&cv[0];
if(doInt_){ if(doInt_){
plumed_dbg_assert(cv.size()==1); plumed_assert(cv.size()==1);
pcv=&(tmpcv[0]); pcv=&(tmpcv[0]);
tmpcv[0]=cv[0]; tmpcv[0]=cv[0];
if(cv[0]<lowI_) tmpcv[0]=lowI_; if(cv[0]<lowI_) tmpcv[0]=lowI_;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment