From b7e6ebfccccb007d7037d391702e329bdaa3fc9c Mon Sep 17 00:00:00 2001 From: Giovanni Bussi <giovanni.bussi@gmail.com> Date: Mon, 29 Jul 2019 09:12:15 +0200 Subject: [PATCH] fixed LGTM warning --- src/tools/Pbc.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/tools/Pbc.cpp b/src/tools/Pbc.cpp index f5f5595f7..02f264431 100644 --- a/src/tools/Pbc.cpp +++ b/src/tools/Pbc.cpp @@ -158,6 +158,7 @@ double Pbc::distance( const bool pbc, const Vector& v1, const Vector& v2 ) const void Pbc::apply(std::vector<Vector>& dlist, unsigned max_index) const { if (max_index==0) max_index=dlist.size(); if(type==unset) { + // do nothing } else if(type==orthorombic) { #ifdef __PLUMED_PBC_WHILE for(unsigned k=0; k<max_index; ++k) { @@ -179,6 +180,7 @@ void Pbc::apply(std::vector<Vector>& dlist, unsigned max_index) const { Vector Pbc::distance(const Vector&v1,const Vector&v2,int*nshifts)const { Vector d=delta(v1,v2); if(type==unset) { + // do nothing } else if(type==orthorombic) { #ifdef __PLUMED_PBC_WHILE for(unsigned i=0; i<3; i++) { -- GitLab