setDebug and remove MBDyn*

This commit is contained in:
Aik-Siong Koh
2024-04-25 13:35:10 -06:00
parent 18a8b5cecf
commit aa0d5ada2e
121 changed files with 80 additions and 53256 deletions

View File

@@ -445,6 +445,10 @@ void MbD::ASMTAssembly::runDraggingLogTest()
{
auto assembly = ASMTAssembly::assemblyFromFile("../testapp/runPreDrag.asmt");
assembly->runDraggingLog("../testapp/dragging.log");
//auto assembly = ASMTAssembly::assemblyFromFile("../temp/runPreDrag.asmt");
//assembly->setDebug(true);
//assembly->runDraggingLog("../temp/dragging.log");
//assembly->setDebug(false);
}
void MbD::ASMTAssembly::runDraggingTest()
@@ -1279,7 +1283,6 @@ void MbD::ASMTAssembly::solve()
void MbD::ASMTAssembly::runPreDrag()
{
debug = true; //Comment out in release build.
if (debug) {
outputFile("runPreDrag.asmt");
std::ofstream os("dragging.log");
@@ -1327,7 +1330,6 @@ void MbD::ASMTAssembly::runPostDrag()
os << "runPostDrag" << std::endl;
os.close();
}
debug = false;
mbdSystem = std::make_shared<System>();
mbdSystem->externalSystem->asmtAssembly = this;
mbdSystem->runPreDrag(mbdSystem);
@@ -1622,4 +1624,9 @@ void MbD::ASMTAssembly::setFilename(std::string str)
filename = str;
}
void MbD::ASMTAssembly::setDebug(bool todebug)
{
debug = todebug;
}