mirror of
https://github.com/smyalygames/FiniteVolumeGPU.git
synced 2026-01-14 15:48:43 +01:00
Fixed general MPI framework
This commit is contained in:
@@ -62,6 +62,7 @@ class WAF (Simulator.BaseSimulator):
|
||||
nx, ny,
|
||||
dx, dy,
|
||||
cfl_scale,
|
||||
2,
|
||||
block_width, block_height);
|
||||
self.g = np.float32(g)
|
||||
self.boundary_conditions = boundary_conditions.asCodedInt()
|
||||
@@ -95,11 +96,8 @@ class WAF (Simulator.BaseSimulator):
|
||||
dt = min(dt_x, dt_y)
|
||||
self.cfl_data.fill(dt, stream=self.stream)
|
||||
|
||||
def step(self, dt):
|
||||
self.substepDimsplit(dt*0.5, substep=0)
|
||||
self.substepDimsplit(dt*0.5, substep=1)
|
||||
self.t += dt
|
||||
self.nt += 2
|
||||
def substep(self, dt, step_number):
|
||||
self.substepDimsplit(dt*0.5, step_number)
|
||||
|
||||
def substepDimsplit(self, dt, substep):
|
||||
self.kernel.prepared_async_call(self.grid_size, self.block_size, self.stream,
|
||||
|
||||
Reference in New Issue
Block a user