Skip to content

Commit 404bebf

Browse files
committed
mend
1 parent 5e3fa75 commit 404bebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

genesis/engine/solvers/rigid/rigid_solver_decomp.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5046,8 +5046,8 @@ def get_weld_constraints(self, as_tensor: bool = True, to_torch: bool = True):
50465046
@ti.kernel
50475047
def _kernel_collect_welds(self, buf: ti.types.ndarray()):
50485048
WELD = gs.EQUALITY_TYPE.WELD
5049-
n_envs = ti.static(max(1, self.n_envs))
5050-
stride = buf.shape[0] // n_envs
5049+
n_envs = self.n_envs
5050+
stride = self.n_equalities_candidate
50515051

50525052
for env in range(n_envs):
50535053
out = 0

0 commit comments

Comments
 (0)