--- trunk/OOPSE/libmdtools/Integrator.cpp 2004/02/06 21:37:59 1035 +++ trunk/OOPSE/libmdtools/Integrator.cpp 2004/02/17 19:23:44 1057 @@ -68,7 +68,8 @@ template void Integrator::checkConstrai SRI** theArray; for (int i = 0; i < nMols; i++){ - theArray = (SRI * *) molecules[i].getMyBonds(); + + theArray = (SRI * *) molecules[i].getMyBonds(); for (int j = 0; j < molecules[i].getNBonds(); j++){ constrained = theArray[j]->is_constrained(); @@ -114,6 +115,7 @@ template void Integrator::checkConstrai } } + if (nConstrained > 0){ isConstrained = 1;