We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8e0cbdc commit 073a335Copy full SHA for 073a335
src/stagpy/step.py
@@ -143,7 +143,7 @@ def t_walls(self) -> NDArray[np.float64]:
143
else:
144
tmin = 0
145
tmax = self.aspect_ratio[0]
146
- return np.linspace(tmin, tmax, self.nttot + 1)
+ return np.linspace(tmin, tmax, self.nttot + 1, dtype=np.float64)
147
# twoD YZ
148
center = np.pi / 2 if self.curvilinear else 0
149
d_t = (self.p_walls[1] - self.p_walls[0]) / 2
@@ -166,7 +166,7 @@ def p_walls(self) -> NDArray[np.float64]:
166
167
pmin = 0
168
pmax = self.aspect_ratio[1]
169
- return np.linspace(pmin, pmax, self.nptot + 1)
+ return np.linspace(pmin, pmax, self.nptot + 1, dtype=np.float64)
170
171
d_p = (self.t_walls[1] - self.t_walls[0]) / 2
172
return np.array([-d_p, d_p])
0 commit comments