Skip to content

Commit 073a335

Browse files
committed
specify linspace should have float64 dtype
1 parent 8e0cbdc commit 073a335

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/stagpy/step.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def t_walls(self) -> NDArray[np.float64]:
143143
else:
144144
tmin = 0
145145
tmax = self.aspect_ratio[0]
146-
return np.linspace(tmin, tmax, self.nttot + 1)
146+
return np.linspace(tmin, tmax, self.nttot + 1, dtype=np.float64)
147147
# twoD YZ
148148
center = np.pi / 2 if self.curvilinear else 0
149149
d_t = (self.p_walls[1] - self.p_walls[0]) / 2
@@ -166,7 +166,7 @@ def p_walls(self) -> NDArray[np.float64]:
166166
else:
167167
pmin = 0
168168
pmax = self.aspect_ratio[1]
169-
return np.linspace(pmin, pmax, self.nptot + 1)
169+
return np.linspace(pmin, pmax, self.nptot + 1, dtype=np.float64)
170170
# twoD YZ
171171
d_p = (self.t_walls[1] - self.t_walls[0]) / 2
172172
return np.array([-d_p, d_p])

0 commit comments

Comments
 (0)