Exemplo n.º 1
0
    def __init__(self, settings, solver_name):
        super(GaussSeidelStrongCoupledSolver,
              self).__init__(settings, solver_name)

        self.convergence_accelerators_list = cs_tools.CreateConvergenceAccelerators(
            self.settings["convergence_accelerators"], self.solver_wrappers,
            self.echo_level)

        self.convergence_criteria_list = cs_tools.CreateConvergenceCriteria(
            self.settings["convergence_criteria"], self.solver_wrappers,
            self.echo_level)

        self.num_coupling_iterations = self.settings[
            "num_coupling_iterations"].GetInt()
Exemplo n.º 2
0
    def __init__(self, settings, solver_name):
        if not settings['coupling_sequence'].size() == 2:
            raise Exception(
                "Exactly two solvers have to be specified for the " +
                self.__class__.__name__ + "!")

        super(GaussSeidelStrong, self).__init__(settings, solver_name)

        self.convergence_accelerators_list = cs_tools.CreateConvergenceAccelerators(
            self.settings["convergence_accelerators"], self.solver_wrappers,
            self.echo_level)

        self.convergence_criteria_list = cs_tools.CreateConvergenceCriteria(
            self.settings["convergence_criteria"], self.solver_wrappers,
            self.echo_level)

        self.num_coupling_iterations = self.settings[
            "num_coupling_iterations"].GetInt()