Exemplo n.º 1
0
def CreateCouplingOperations(coupling_operations_settings_dict, solvers, parent_echo_level):
    coupling_operations = {}
    for coupling_operation_name, coupling_operation_settings in coupling_operations_settings_dict.items():
        AddEchoLevelToSettings(coupling_operation_settings, parent_echo_level)
        coupling_operations[coupling_operation_name] = CreateCouplingOperation(coupling_operation_settings, solvers)

    return coupling_operations
Exemplo n.º 2
0
def CreateCouplingOperations(coupling_operations_settings_dict, solvers,
                             parent_echo_level):
    from KratosMultiphysics.CoSimulationApplication.factories.coupling_operation_factory import CreateCouplingOperation
    coupling_operations = {}
    for coupling_operation_name, coupling_operation_settings in coupling_operations_settings_dict.items(
    ):
        AddEchoLevelToSettings(coupling_operation_settings, parent_echo_level)
        coupling_operations[coupling_operation_name] = CreateCouplingOperation(
            coupling_operation_settings, solvers)

    return coupling_operations