针对fluent集成案例修复bug

master
禅元天道 2023-07-25 13:12:18 +08:00
parent b4c4e7e064
commit d518eed8db
2 changed files with 477 additions and 592 deletions

File diff suppressed because it is too large Load Diff

View File

@ -105,7 +105,8 @@ namespace SolverControl {
_processBar = new ModuleBase::ProcessBar(_mainWindow, _description, false);
QString args = _solver->getParameter();
QRegExp regExp("%.*%");
args.replace("%modelpath%", startPath, Qt::CaseInsensitive);
/*QRegExp regExp("%.*%");
regExp.setMinimal(true);
// int pos = regExp.indexIn(args);
QStringList variables = regExp.capturedTexts();
@ -114,8 +115,7 @@ namespace SolverControl {
QString va = variable.remove("%");
if(va.toLower() == "modelpath")
args.replace(variables.at(i), startPath);
// qDebug() << args;
}
}*/
// QString startProcess = solverPath + " " + args;
// if (solverPath.contains(" "))