Skip to content

Commit de7e3e3

Browse files
committed
Bug fix: GeometryXTime.uniform_points and uniform_boundary_points
1 parent 77149c8 commit de7e3e3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

deepxde/geometry/timedomain.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ def uniform_points(self, n, boundary=True):
5252
)
5353
nt = int(np.ceil(n / nx))
5454
x = self.geometry.uniform_points(nx, boundary=boundary)
55+
nx = len(x)
5556
if boundary:
5657
t = self.timedomain.uniform_points(nt, boundary=True)
5758
else:
@@ -97,6 +98,7 @@ def uniform_boundary_points(self, n):
9798
nx = int((n * s / self.timedomain.diam) ** 0.5)
9899
nt = int(np.ceil(n / nx))
99100
x = self.geometry.uniform_boundary_points(nx)
101+
nx = len(x)
100102
t = np.linspace(
101103
self.timedomain.t1,
102104
self.timedomain.t0,

0 commit comments

Comments
 (0)