Bug Description
FEMEntity.set_vertex_constraints() at fem_entity.py:900-901 raises "This method is only supported by IPC coupler." exactly when self.sim.coupler IS an IPCCoupler — the opposite of what the message says. Wondering if the isinstance check is inverted by mistake, or if this is intentional and the message is just misleading?
Repro: build a scene with coup_type="ipc_only"/"two_way_soft_constraint" (IPCCoupler active), then call fem_entity.set_vertex_constraints(verts_idx_local=[...]) → raises GenesisException even though IPC is active.
If unintended, the fix would be if not isinstance(self.sim.coupler, IPCCoupler): — happy to open a PR if that's confirmed.
Release version or Commit ID
Bug Description
FEMEntity.set_vertex_constraints() at fem_entity.py:900-901 raises "This method is only supported by IPC coupler." exactly when self.sim.coupler IS an IPCCoupler — the opposite of what the message says. Wondering if the isinstance check is inverted by mistake, or if this is intentional and the message is just misleading?
Repro: build a scene with coup_type="ipc_only"/"two_way_soft_constraint" (IPCCoupler active), then call fem_entity.set_vertex_constraints(verts_idx_local=[...]) → raises GenesisException even though IPC is active.
If unintended, the fix would be
if not isinstance(self.sim.coupler, IPCCoupler):— happy to open a PR if that's confirmed.Release version or Commit ID