OndselSolver can read and write *.asmt files

This commit is contained in:
Aik-Siong Koh
2023-10-19 10:51:51 -06:00
parent 95cd91c9d1
commit 4360daddf3
61 changed files with 1383 additions and 107 deletions

View File

@@ -78,3 +78,20 @@ void MbD::ASMTSimulationParameters::setmaxIter(int maxIter)
iterMaxPosKine = maxIter;
iterMaxAccKine = maxIter;
}
void MbD::ASMTSimulationParameters::storeOnLevel(std::ofstream& os, int level)
{
storeOnLevelString(os, level, "SimulationParameters");
storeOnLevelString(os, level + 1, "tstart");
storeOnLevelDouble(os, level + 2, tstart);
storeOnLevelString(os, level + 1, "tend");
storeOnLevelDouble(os, level + 2, tend);
storeOnLevelString(os, level + 1, "hmin");
storeOnLevelDouble(os, level + 2, hmin);
storeOnLevelString(os, level + 1, "hmax");
storeOnLevelDouble(os, level + 2, hmax);
storeOnLevelString(os, level + 1, "hout");
storeOnLevelDouble(os, level + 2, hout);
storeOnLevelString(os, level + 1, "errorTol");
storeOnLevelDouble(os, level + 2, errorTol);
}