Skip to content

TypeError: ContactProblem argument mismatch — ‘incompatible function arguments’ in dolfinx_contact #185

@Dila-Kandel

Description

@Dila-Kandel

Hi all,

I am trying to run a hertz_contact/demo_hertzian_contact.py
using the ContactProblem class from dolfinx_contact. However, I keep getting a TypeError related to argument mismatch, even though my argument types look correct.

Here is the relevant part of my code:

search_mode = [ContactMode.ClosestPoint, ContactMode.ClosestPoint]
contact_problem = ContactProblem(
    [facet_marker], surfaces, contact_pairs, mesh, 
    args.q_degree, search_mode
)

Thank you,
Dila

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions