File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
genesis/engine/solvers/rigid Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -427,11 +427,12 @@ def _init_mass_mat(self):
427427 self .meaninertia .fill (0 )
428428
429429 def _init_dof_fields (self ):
430- # we are going to move n_awake_dofs and awake_dofs to _rigid_global_info completely after migration.
431- # But right now, other kernels are still using self.n_awake_dofs and self.awake_dofs
432- # so we need to keep them in self for now.
433- self .n_awake_dofs = self ._rigid_global_info .n_awake_dofs
434- self .awake_dofs = self ._rigid_global_info .awake_dofs
430+ if self ._use_hibernation :
431+ # we are going to move n_awake_dofs and awake_dofs to _rigid_global_info completely after migration.
432+ # But right now, other kernels are still using self.n_awake_dofs and self.awake_dofs
433+ # so we need to keep them in self for now.
434+ self .n_awake_dofs = self ._rigid_global_info .n_awake_dofs
435+ self .awake_dofs = self ._rigid_global_info .awake_dofs
435436
436437 struct_dof_info = ti .types .struct (
437438 stiffness = gs .ti_float ,
You can’t perform that action at this time.
0 commit comments