@@ -26,8 +26,8 @@ def test_2D(backend, forward_output):
2626 assert forward_output is False
2727 T = PFFT (comm , (N [0 ], N [1 ]))
2828 for i , domain in enumerate ([None , ((0 , np .pi ), (0 , 2 * np .pi )),
29- (np .arange (N [0 ], dtype = np . float )* 1 * np .pi / N [0 ],
30- np .arange (N [1 ], dtype = np . float )* 2 * np .pi / N [1 ])]):
29+ (np .arange (N [0 ], dtype = float )* 1 * np .pi / N [0 ],
30+ np .arange (N [1 ], dtype = float )* 2 * np .pi / N [1 ])]):
3131 for rank in range (3 ):
3232 filename = "" .join (('test2D_{}{}{}' .format (ex [i == 0 ], ex [forward_output ], rank ),
3333 ending [backend ]))
@@ -66,9 +66,9 @@ def test_3D(backend, forward_output):
6666 assert forward_output is False
6767 T = PFFT (comm , (N [0 ], N [1 ], N [2 ]))
6868 d0 = ((0 , np .pi ), (0 , 2 * np .pi ), (0 , 3 * np .pi ))
69- d1 = (np .arange (N [0 ], dtype = np . float )* 1 * np .pi / N [0 ],
70- np .arange (N [1 ], dtype = np . float )* 2 * np .pi / N [1 ],
71- np .arange (N [2 ], dtype = np . float )* 3 * np .pi / N [2 ])
69+ d1 = (np .arange (N [0 ], dtype = float )* 1 * np .pi / N [0 ],
70+ np .arange (N [1 ], dtype = float )* 2 * np .pi / N [1 ],
71+ np .arange (N [2 ], dtype = float )* 3 * np .pi / N [2 ])
7272 for i , domain in enumerate ([None , d0 , d1 ]):
7373 for rank in range (3 ):
7474 filename = '' .join (('test_{}{}{}' .format (ex [i == 0 ], ex [forward_output ], rank ),
@@ -129,10 +129,10 @@ def test_4D(backend, forward_output):
129129 assert forward_output is False
130130 T = PFFT (comm , (N [0 ], N [1 ], N [2 ], N [3 ]))
131131 d0 = ((0 , np .pi ), (0 , 2 * np .pi ), (0 , 3 * np .pi ), (0 , 4 * np .pi ))
132- d1 = (np .arange (N [0 ], dtype = np . float )* 1 * np .pi / N [0 ],
133- np .arange (N [1 ], dtype = np . float )* 2 * np .pi / N [1 ],
134- np .arange (N [2 ], dtype = np . float )* 3 * np .pi / N [2 ],
135- np .arange (N [3 ], dtype = np . float )* 4 * np .pi / N [3 ]
132+ d1 = (np .arange (N [0 ], dtype = float )* 1 * np .pi / N [0 ],
133+ np .arange (N [1 ], dtype = float )* 2 * np .pi / N [1 ],
134+ np .arange (N [2 ], dtype = float )* 3 * np .pi / N [2 ],
135+ np .arange (N [3 ], dtype = float )* 4 * np .pi / N [3 ]
136136 )
137137 for i , domain in enumerate ([None , d0 , d1 ]):
138138 for rank in range (3 ):
0 commit comments