Skip to content

File settings.hpp

File List > include > multigrid > settings.hpp

Go to the documentation of this file

#pragma once

#include "multigrid/types.hpp"

namespace mgrid {

struct Settings {
    double aspectRatio{1.0};

    int numberOfGrids{8};

    int minimumResolution{4};

    double residualTolerance{1e-10};

    int maximumIterations{400};

    CycleType mgCycleType{wCycle};

    unsigned long preMGRelaxIter{1};

    unsigned long postMGRelaxIter{2};

    bool xPeriodic{false};

    bool zPeriodic{false};
};

} // namespace mgrid