constraintSpecs and constraintSpec and clean up.

This commit is contained in:
Aik-Siong Koh
2025-08-12 18:06:00 -06:00
committed by Chris Hennes
parent 1a8fdc32d3
commit d9ad3290c0
73 changed files with 256 additions and 74 deletions

View File

@@ -94,6 +94,15 @@ void MbD::ConstraintSet::useEquationNumbers()
constraintsDo([](std::shared_ptr<Constraint> constraint) { constraint->useEquationNumbers(); });
}
std::string MbD::ConstraintSet::constraintSpecs()
{
std::stringstream ss;
constraintsDo([&](std::shared_ptr<Constraint> con) {
ss << con->constraintSpec() << std::endl;
});
return ss.str();
}
void MbD::ConstraintSet::setqsulam(FColDsptr col)
{
constraintsDo([&](std::shared_ptr<Constraint> con) { con->setqsulam(col); });