Implement Limits
This commit is contained in:
committed by
PaddleStroke
parent
3a9e7cecab
commit
ad4a563b42
@@ -39,7 +39,7 @@ void MbD::MBDynStructural::readVelocity(std::vector<std::string>& args)
|
||||
auto parser = std::make_shared<SymbolicParser>();
|
||||
parser->variables = mbdynVariables();
|
||||
vOfO = std::make_shared<FullColumn<double>>(3);
|
||||
auto str = args.at(0); //Must copy string
|
||||
std::string str = args.at(0); //Must copy string
|
||||
if (str.find("null") != std::string::npos) {
|
||||
args.erase(args.begin());
|
||||
return;
|
||||
@@ -49,7 +49,7 @@ void MbD::MBDynStructural::readVelocity(std::vector<std::string>& args)
|
||||
{
|
||||
auto userFunc = std::make_shared<BasicUserFunction>(popOffTop(args), 1.0);
|
||||
parser->parseUserFunction(userFunc);
|
||||
auto sym = parser->stack->top();
|
||||
auto& sym = parser->stack->top();
|
||||
vOfO->at(i) = sym->getValue();
|
||||
}
|
||||
}
|
||||
@@ -60,7 +60,7 @@ void MbD::MBDynStructural::readOmega(std::vector<std::string>& args)
|
||||
auto parser = std::make_shared<SymbolicParser>();
|
||||
parser->variables = mbdynVariables();
|
||||
omeOfO = std::make_shared<FullColumn<double>>(3);
|
||||
auto str = args.at(0); //Must copy string
|
||||
std::string str = args.at(0); //Must copy string
|
||||
if (str.find("null") != std::string::npos) {
|
||||
args.erase(args.begin());
|
||||
return;
|
||||
@@ -70,7 +70,7 @@ void MbD::MBDynStructural::readOmega(std::vector<std::string>& args)
|
||||
{
|
||||
auto userFunc = std::make_shared<BasicUserFunction>(popOffTop(args), 1.0);
|
||||
parser->parseUserFunction(userFunc);
|
||||
auto sym = parser->stack->top();
|
||||
auto& sym = parser->stack->top();
|
||||
omeOfO->at(i) = sym->getValue();
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ void MbD::MBDynStructural::readOmega(std::vector<std::string>& args)
|
||||
|
||||
void MbD::MBDynStructural::createASMT()
|
||||
{
|
||||
auto asmtPart = std::make_shared<ASMTPart>();
|
||||
auto asmtPart = ASMTPart::With();
|
||||
asmtItem = asmtPart;
|
||||
asmtPart->setName(name);
|
||||
asmtPart->setPosition3D(rOfO);
|
||||
|
||||
Reference in New Issue
Block a user