diff --git a/processing/post/addCurl.py b/processing/post/addCurl.py index 2fcd107c0..b3dfedaf4 100755 --- a/processing/post/addCurl.py +++ b/processing/post/addCurl.py @@ -49,7 +49,7 @@ for name in filenames: for label in options.labels: field = table.get_array(label) shape = (3,) if np.prod(field.shape)//np.prod(grid) == 3 else (3,3) # vector or tensor - field = table.get_array(label).reshape(np.append(grid[::-1],shape)) + field = field.reshape(np.append(grid[::-1],shape)) table.add_array('curlFFT({})'.format(label), damask.grid_filters.curl(size[::-1],field).reshape((-1,np.prod(shape))), scriptID+' '+' '.join(sys.argv[1:])) diff --git a/processing/post/addDivergence.py b/processing/post/addDivergence.py index 562ab7532..7ecaf10f0 100755 --- a/processing/post/addDivergence.py +++ b/processing/post/addDivergence.py @@ -49,7 +49,7 @@ for name in filenames: for label in options.labels: field = table.get_array(label) shape = (3,) if np.prod(field.shape)//np.prod(grid) == 3 else (3,3) # vector or tensor - field = table.get_array(label).reshape(np.append(grid[::-1],shape)) + field = field.reshape(np.append(grid[::-1],shape)) table.add_array('divFFT({})'.format(label), damask.grid_filters.divergence(size[::-1],field).reshape((-1,np.prod(shape)//3)), scriptID+' '+' '.join(sys.argv[1:])) diff --git a/processing/post/addGradient.py b/processing/post/addGradient.py index d6b537ddd..d3081db66 100755 --- a/processing/post/addGradient.py +++ b/processing/post/addGradient.py @@ -49,7 +49,7 @@ for name in filenames: for label in options.labels: field = table.get_array(label) shape = (1,) if np.prod(field.shape)//np.prod(grid) == 1 else (3,) # scalar or vector - field = table.get_array(label).reshape(np.append(grid[::-1],shape)) + field = field.reshape(np.append(grid[::-1],shape)) table.add_array('gradFFT({})'.format(label), damask.grid_filters.gradient(size[::-1],field).reshape((-1,np.prod(shape)*3)), scriptID+' '+' '.join(sys.argv[1:]))