changes to class detection

This commit is contained in:
John Dupuy
2023-09-27 15:13:22 -05:00
parent 4b3d676f30
commit fa2deac10f
10 changed files with 42 additions and 32 deletions

View File

@@ -25,13 +25,13 @@ void VelSolver::basicSolveEquations()
void VelSolver::handleSingularMatrix()
{
std::string str = typeid(*matrixSolver).name();
if (str == "class GESpMatParPvMarkoFast") {
if (str.find("GESpMatParPvMarkoFast") >= 0) {
matrixSolver = CREATE<GESpMatParPvPrecise>::With();
this->solveEquations();
}
else {
str = typeid(*matrixSolver).name();
if (str == "class GESpMatParPvPrecise") {
if (str.find("GESpMatParPvPrecise") >= 0) {
this->logSingularMatrixMessage();
matrixSolver = this->matrixSolverClassNew();
}