Skip to content

Pass Tolerance to trace_particle_through_mesh Instead of Computing it Everytime #138

@Fuad-HH

Description

@Fuad-HH

In the following segment of the trace_particle_through_mesh function, the tolerance for search algorithms is computed based on the "minimum area" and it can be expensive.

    const auto elmArea = measure_elements_real(&mesh);
    o::Real tol = compute_tolerance_from_area(elmArea);

But it should also get the tolerance as a parameter (taking it as a reference) and if the tolerance is not passed (default to 0.0), it can calculate its own.

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