Skip to content

Commit 1d5f556

Browse files
committed
fix initial condition
1 parent bcd00c3 commit 1d5f556

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
*.png
55
dist/
66
build/
7+
tmp/*
78
/src/wavefield/*
89
simwave.egg-info/*
910
.ipynb_checkpoints

simwave/kernel/frontend/solver.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,8 @@ def forward(self, initial_grid=None):
141141
halo = self.space_model.halo_size[0]
142142
nbl = self.space_model.nbl
143143

144-
print("Initial grid")
145-
print(initial_grid)
144+
# print("Initial grid")
145+
# print(initial_grid)
146146
print("Initial grid shape:", initial_grid.shape)
147147

148148
if self.space_model.dimension == 2:
@@ -151,7 +151,7 @@ def forward(self, initial_grid=None):
151151
z2 = halo + nbl[1]
152152
x1 = halo + nbl[2]
153153
x2 = halo + nbl[3]
154-
u[0, z1:-z2, x1:-x2] = initial_grid
154+
u[1, z1:-z2, x1:-x2] = initial_grid
155155

156156
else:
157157

@@ -162,7 +162,7 @@ def forward(self, initial_grid=None):
162162
y1 = halo + nbl[4]
163163
y2 = halo + nbl[5]
164164

165-
u[0, z1:-z2, x1:-x2, y1:-y2] = initial_grid
165+
u[1, z1:-z2, x1:-x2, y1:-y2] = initial_grid
166166

167167
u_full, recv = self._middleware.exec(
168168
operator='forward',

0 commit comments

Comments
 (0)