mirror of
https://github.com/smyalygames/FiniteVolumeGPU.git
synced 2025-05-18 06:24:13 +02:00
Checkpoint. Next: Compose domain before writing
This commit is contained in:
parent
ad2be4b5a5
commit
11223f0890
@ -167,7 +167,7 @@ class SHMEMSimulatorGroup(Simulator.BaseSimulator):
|
|||||||
assert(len(sims) > 1)
|
assert(len(sims) > 1)
|
||||||
|
|
||||||
self.sims = sims
|
self.sims = sims
|
||||||
|
|
||||||
# XXX: This is not what was intended. Do we need extra wrapper class SHMEMSimulator?
|
# XXX: This is not what was intended. Do we need extra wrapper class SHMEMSimulator?
|
||||||
# See also getOutput() and check().
|
# See also getOutput() and check().
|
||||||
#
|
#
|
||||||
@ -187,7 +187,6 @@ class SHMEMSimulatorGroup(Simulator.BaseSimulator):
|
|||||||
sims[0].block_size[0], sims[0].block_size[1])
|
sims[0].block_size[0], sims[0].block_size[1])
|
||||||
sims[0].context.autotuner = autotuner
|
sims[0].context.autotuner = autotuner
|
||||||
|
|
||||||
self.nsubdomains = grid.ngpus
|
|
||||||
self.sims = sims
|
self.sims = sims
|
||||||
self.grid = grid
|
self.grid = grid
|
||||||
|
|
||||||
|
@ -75,7 +75,8 @@ logger.info("Generating initial conditions")
|
|||||||
nx = 128
|
nx = 128
|
||||||
ny = 128
|
ny = 128
|
||||||
gamma = 1.4
|
gamma = 1.4
|
||||||
save_times = np.linspace(0, 0.01, 10)
|
#save_times = np.linspace(0, 0.01, 10)
|
||||||
|
save_times = np.linspace(0, 10, 10)
|
||||||
save_var_names = ['rho', 'rho_u', 'rho_v', 'E']
|
save_var_names = ['rho', 'rho_u', 'rho_v', 'E']
|
||||||
|
|
||||||
outfile = "shmem_out.nc"
|
outfile = "shmem_out.nc"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user