Skip to content

[Bug]: FEMEntity.set_vertex_constraints() raises when coupler IS IPCCoupler — inverted condition, or intended? #3039

Description

@55155

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

  • Genesis version: 1.1.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions