using 3 way merge to have syntax as similar as possible

This commit is contained in:
Martin Diehl 2016-11-07 09:49:53 +01:00
parent cbe2fb8d57
commit 873c52cceb
3 changed files with 23 additions and 23 deletions

View File

@ -19,7 +19,7 @@ def divFFT(geomdim,field):
elif n == 9: dataType = 'tensor' elif n == 9: dataType = 'tensor'
field_fourier = np.fft.rfftn(field,axes=(0,1,2),s=shapeFFT) field_fourier = np.fft.rfftn(field,axes=(0,1,2),s=shapeFFT)
div_fourier = np.empty(field_fourier.shape[0:len(np.shape(field))-1],'c16') # size depents on whether tensor or vector div_fourier = np.empty(field_fourier.shape[0:len(np.shape(field))-1],'c16')
# differentiation in Fourier space # differentiation in Fourier space
TWOPIIMG = 2.0j*math.pi TWOPIIMG = 2.0j*math.pi