Updates to convergence plots

This commit is contained in:
André R. Brodtkorb 2018-08-08 16:10:31 +02:00
parent 01174dbae7
commit e01cdb3c19
7 changed files with 2295 additions and 5487 deletions

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

View File

@ -148,7 +148,7 @@ class CUDAArray2D:
#Make sure data is in proper format #Make sure data is in proper format
assert np.issubdtype(data.dtype, np.float32), "Wrong datatype: %s" % str(data.dtype) assert np.issubdtype(data.dtype, np.float32), "Wrong datatype: %s" % str(data.dtype)
assert not np.isfortran(data), "Wrong datatype (Fortran, expected C)" 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 #Upload data to the device
self.data = pycuda.gpuarray.to_gpu_async(data, stream=stream) self.data = pycuda.gpuarray.to_gpu_async(data, stream=stream)

File diff suppressed because one or more lines are too long