Skip to content
Snippets Groups Projects
Commit 499e9458 authored by Eric Dalissier's avatar Eric Dalissier
Browse files

some modification

parent 2eb175b2
No related branches found
No related tags found
No related merge requests found
...@@ -62,7 +62,6 @@ class Stretching_d(DiscreteOperator): ...@@ -62,7 +62,6 @@ class Stretching_d(DiscreteOperator):
-integrate with the chosen method (RK4. RK2. euler) -integrate with the chosen method (RK4. RK2. euler)
""" """
self.compute_time = time.time() self.compute_time = time.time()
if self.method is not None: if self.method is not None:
...@@ -97,8 +96,8 @@ class Stretching_d(DiscreteOperator): ...@@ -97,8 +96,8 @@ class Stretching_d(DiscreteOperator):
# Time integration # Time integration
for i in range (self.ndt) : for i in range (self.ndt) :
methodInt=self.method(self.fonction) methodInt=self.method(self.fonction)
self.res_vorticity = methodInt.integrate(self.fonction.apply, t, self.dtstretch, self.vorticity.data) self.vorticity.data = methodInt.integrate(self.fonction.apply, t, self.dtstretch, self.vorticity.data)
self.vorticity.data= np.copy(self.res_vorticity)
# Ghosts synchronization # Ghosts synchronization
# self.OpSynchronize.apply([self.vorticity.data, self.velocity.data]) # self.OpSynchronize.apply([self.vorticity.data, self.velocity.data])
......
...@@ -29,7 +29,7 @@ class ParticleSolver(Solver): ...@@ -29,7 +29,7 @@ class ParticleSolver(Solver):
Link with differents numericals methods used. Link with differents numericals methods used.
""" """
def __init__(self, problem, t_end, dt, def __init__(self, problem, t_end, dt,
ODESolver=None, ODESolver=RK3,
InterpolationMethod=None, InterpolationMethod=None,
RemeshingMethod=None, RemeshingMethod=None,
splittingMethod='strang', splittingMethod='strang',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment