diff --git a/src/tools/MultiValue.cpp b/src/tools/MultiValue.cpp index 5635f1c699..fd26ccea18 100644 --- a/src/tools/MultiValue.cpp +++ b/src/tools/MultiValue.cpp @@ -58,9 +58,9 @@ void MultiValue::clearAll() { for(unsigned i=0; i std::vector& matrix_indices( myvals.getMatrixRowDerivativeIndices( nmat ) ); plumed_assert( nmat_indgetPositionInStream(); - for(unsigned k=0; kgetPositionInStream(); + for(unsigned k=0; kgetShape()[0]; - for(unsigned i=0; igetShape()[0]; + for(unsigned i=0; i