--- trunk/src/io/RestWriter.cpp 2009/09/07 16:31:51 1360 +++ trunk/src/io/RestWriter.cpp 2009/10/07 20:49:50 1364 @@ -74,23 +74,26 @@ namespace oopse { // TODO: get Restraint info from slave nodes: std::vector::const_iterator resti; for(resti=restraints.begin(); resti != restraints.end(); ++resti){ - std::string myName = (*resti)->getRestraintName(); - int myType = (*resti)->getRestraintType(); - - output_ << myName << ":"; - - if (myType & Restraint::rtDisplacement) - output_ << "\tPosition(angstroms)\tEnergy(kcal/mol)"; - - if (myType & Restraint::rtTwist) - output_ << "\tTwistAngle(radians)\tEnergy(kcal/mol)"; - - if (myType & Restraint::rtSwingX) - output_ << "\tSwingXAngle(radians)\tEnergy(kcal/mol)"; - - if (myType & Restraint::rtSwingY) - output_ << "\tSwingYAngle(radians)\tEnergy(kcal/mol)"; - + + if ((*resti)->getPrintRestraint()) { + std::string myName = (*resti)->getRestraintName(); + int myType = (*resti)->getRestraintType(); + + output_ << myName << ":"; + + if (myType & Restraint::rtDisplacement) + output_ << "\tPosition(angstroms)\tEnergy(kcal/mol)"; + + if (myType & Restraint::rtTwist) + output_ << "\tTwistAngle(radians)\tEnergy(kcal/mol)"; + + if (myType & Restraint::rtSwingX) + output_ << "\tSwingXAngle(radians)\tEnergy(kcal/mol)"; + + if (myType & Restraint::rtSwingY) + output_ << "\tSwingYAngle(radians)\tEnergy(kcal/mol)"; + + } } output_ << "\n"; #ifdef IS_MPI