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

Added an error to avoid an uninitialized value

parent 914b85f4
No related branches found
No related tags found
No related merge requests found
...@@ -278,6 +278,11 @@ double SwitchingFunction::inverse( const double& val ) const { ...@@ -278,6 +278,11 @@ double SwitchingFunction::inverse( const double& val ) const {
double ival; double ival;
if( type==smap ){ if( type==smap ){
// I add this error because I do not know how to compute ival
// previously this line was just missing
// In this manner at least we are should that it cannot happen that
// an uninitialized ival is used
plumed_merror("cannot compute ival in this case");
} else if(type==rational){ } else if(type==rational){
ival=1.1; ival=1.1;
for(unsigned i=0;;++i){ for(unsigned i=0;;++i){
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment