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

Fixed warnings

for icc compiler
parent 0b2340d4
No related branches found
No related tags found
No related merge requests found
......@@ -173,6 +173,7 @@ int PlumedCommunicator::Status::Get_count()const{
if(initialized()) MPI_Get_count(const_cast<MPI_Status*>(&s),getMPIType<T>(),&i);
#else
assert(0);
i=0;
#endif
return i;
}
......
......@@ -77,13 +77,6 @@ double Value::getForce()const{
return inputForce;
}
inline
void Value::addForce(double f){
assert(hasDerivatives());
forced=true;
inputForce+=f;
}
inline
const std::vector<double> & Value::getDerivatives()const{
return derivatives;
......@@ -125,6 +118,14 @@ bool Value::checkForced()const{
return forced;
}
inline
void Value::addForce(double f){
assert(hasDerivatives());
forced=true;
inputForce+=f;
}
}
......
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