Skip to content

Parallelize Mesh Deletion (mesh2d_delete) #519

Description

@Wazyre

Hello, I'm trying to generate models and meshes for a coastal application via dfm_tools, which uses mesh2d_delete to delete land cells from the mesh (https://github.com/Deltares/dfm_tools/blob/main/dfm_tools/meshkernel_helpers.py#L96). It works great sequentially and outputs a result, however, this step takes the longest time in the entire process. To cut down on time, I was hoping to run it on a High Performance Computing system. I have an HPC I'm trying to run the process in in parallel, but quickly found out the mesh deletion process does not have that functionality. And no matter how many resources are allocated to it, the mesh deletion time is the same given a certain domain.

I was wondering if a feature could be developed where to cut down on time, the mesh is split into a number of partitions, processed in parallel, then stitched back together, with each partition allocated a CPU core. I tried on a higher level to have the mesh partitioned before the mesh deletion step, but the mesh files produced do not merge well. The partitioning might need to be done on the polygon level to merge without error.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions