Skip to content

lfric2lfric: do not partition multigrid meshes #290

@ukmo-juan-castillo

Description

@ukmo-juan-castillo

Are there any linked Issues or Pull Requests?

MetOffice/lfric_core#288

Brief description

When reading a multigrid mesh file, by default all meshes this file contains are partitioned. This behaviour is suitable for lfric jobs, as all meshes need to be partitioned. In lfric2lfric this is not true, and only the source and destination meshes need to be partitioned. In any case, partitioning all meshes in the multigrid mesh file imposes a series of conditions regarding the number of CPUs that can be used in a job. This can be a limitation in lfric2lfric, given that already the source and destination meshes can be very different.

One simple solution is for lfric2lfric to just read mesh files containing one single mesh. For flexibility though, it would be desirable that lfric2lfric just partitioned, and made checks on mesh dimensions against CPU number, on the source and destination meshes. This functionality is already present in lfric_core via the any_maps parameter of the get_partition subroutine of the panel_decomposition_type object. On the other hand, this object subroutine is not called directly in most applications, so this functionality should be made more accessible.

Further details of the issue.

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions