Skip to content

Commit 4250211

Browse files
committed
Fix vectors
1 parent 38438d8 commit 4250211

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

ngsolve_webgpu/vectors.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ def get_compute_bindings(self):
6767
np.array([self.n_search_els], dtype=np.uint32), label="n_search_els",
6868
reuse=self.u_nsearch if hasattr(self, "u_nsearch") else None)
6969
return [
70-
self.function_data.mesh_data.get_bindings(),
70+
*self.function_data.mesh_data.get_bindings(),
7171
BufferBinding(21, self.u_nvectors, read_only=False),
7272
BufferBinding(22, self.__buffers["positions"], read_only=False),
7373
BufferBinding(23, self.__buffers["directions"], read_only=False),
@@ -153,8 +153,6 @@ def get_compute_bindings(self):
153153
bindings = super().get_compute_bindings()
154154
buffers = self.function_data.get_buffers()
155155
return bindings + [
156-
BufferBinding(MeshBinding.DEFORMATION_VALUES, buffers["deformation_2d"]),
157-
UniformBinding(MeshBinding.DEFORMATION_SCALE, buffers["deformation_scale"]),
158156
BufferBinding(FunctionBinding.FUNCTION_VALUES_2D, buffers["data_2d"]),
159157
]
160158

@@ -181,8 +179,6 @@ def get_compute_bindings(self):
181179
buffers = self.function_data.get_buffers()
182180
return bindings + [
183181
*self.__clipping.get_bindings(),
184-
BufferBinding(MeshBinding.DEFORMATION_3D_VALUES, buffers["deformation_3d"]),
185-
UniformBinding(MeshBinding.DEFORMATION_SCALE, buffers["deformation_scale"]),
186182
BufferBinding(FunctionBinding.FUNCTION_VALUES_3D, buffers["data_3d"]),
187183
]
188184

0 commit comments

Comments
 (0)