mirror of
https://github.com/smyalygames/FiniteVolumeGPU.git
synced 2025-05-18 06:24:13 +02:00
Updates to convergence plots
This commit is contained in:
parent
01174dbae7
commit
e01cdb3c19
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -148,7 +148,7 @@ class CUDAArray2D:
|
||||
#Make sure data is in proper format
|
||||
assert np.issubdtype(data.dtype, np.float32), "Wrong datatype: %s" % str(data.dtype)
|
||||
assert not np.isfortran(data), "Wrong datatype (Fortran, expected C)"
|
||||
assert data.shape == (self.ny_halo, self.nx_halo), "Wrong data shape: %s" % str(data.shape)
|
||||
assert data.shape == (self.ny_halo, self.nx_halo), "Wrong data shape: %s vs %s" % (str(data.shape), str((self.ny_halo, self.nx_halo)))
|
||||
|
||||
#Upload data to the device
|
||||
self.data = pycuda.gpuarray.to_gpu_async(data, stream=stream)
|
||||
|
3083
WAFExp.ipynb
3083
WAFExp.ipynb
File diff suppressed because one or more lines are too long
Loading…
x
Reference in New Issue
Block a user