diff --git a/src/USER-MESONT/mesont_list.cpp b/src/USER-MESONT/mesont_list.cpp index 122c86102f..06e49b2999 100644 --- a/src/USER-MESONT/mesont_list.cpp +++ b/src/USER-MESONT/mesont_list.cpp @@ -139,7 +139,7 @@ MESONTList::MESONTList(const Atom* atom, const NeighList* nblist, double rc2){ for (int m = 0; m < 2; m++) { nb_list_i[m].resize(0); int idx = segments[i][m]; - if (idx >= nlocal) continue; + if (idx >= nlocal) continue; int nnb = nblist->numneigh[idx]; for (int j = 0; j < nnb; j++) { int jdx = nblist->firstneigh[idx][j]; diff --git a/src/USER-MESONT/mesont_list.h b/src/USER-MESONT/mesont_list.h index cb6eb9dba8..471a77554f 100644 --- a/src/USER-MESONT/mesont_list.h +++ b/src/USER-MESONT/mesont_list.h @@ -68,7 +68,7 @@ private: //============================================================================= -inline const std::vector > > & +inline const std::vector > > & MESONTList::get_nbs() const { return nb_chains; }