hpfem/agros2d

Error browsing boundary types in modifyBoundary in pyfield.cpp

Opened this issue · 0 comments

It will only work for the first boundary type in boundaryTypes(), the other valid boundary types will throw an exception

 // browse boundary types
    foreach (Module::BoundaryType boundaryType, sceneBoundary->fieldInfo()->boundaryTypes())
    {
        if (QString::fromStdString(type) == boundaryType.id())
        {
            sceneBoundary->setType(QString::fromStdString(type));
            break;
        }
        else
            throw invalid_argument(QObject::tr("Wrong boundary type '%1'.").arg(QString::fromStdString(type)).toStdString());
    }