Esempio n. 1
0
    def __init__(self, algorithm = None, varying_parameters = Parameters("{}")):

        if algorithm == None:
            import swimming_DEM_algorithm
            self.alg = swimming_DEM_algorithm.Algorithm(varying_parameters)
        else:
            self.alg = algorithm.Algorithm(varying_parameters)
Esempio n. 2
0
    def __init__(self, algorithm=None, varying_parameters=dict()):
        self.alg = algorithm

        if self.alg == None:
            import swimming_DEM_algorithm
            self.alg = swimming_DEM_algorithm.Algorithm(varying_parameters)