Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-implementing the mesh input to enable multiple file types #45

Merged
merged 6 commits into from
Aug 31, 2023

Conversation

EdHone
Copy link
Collaborator

@EdHone EdHone commented Aug 17, 2023

The netcdf-ugrid file type offers a benefit in terms of file size and parallel I/O capability via parallel netcdf, but should not replace the existing .obj mesh files which are useful for their flexibility, particularly where mesh size is not an issue (for non-geographical assets for example).

This PR enables mesh objects to be read from mutiple file sources. This is achieved by moving the mesh file implementation into the mesh module, and altering the interface provided by the wavefront fs module. This interface is copied by the new ugrid fs module and both are used by the new mesh-file implementation.

Unit tests have been added.

@EdHone EdHone requested a review from sammorrell August 17, 2023 09:23
Copy link
Member

@sammorrell sammorrell left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. I agree with the abstraction of the File implementation for Mesh over different file types. Makes sense to support the different input file types.

I have downloaded and run the integration in aetherus-tests with this compiled and it passes. So, I will merge this in next week when I have merged in the new unit tests and published a release.

As you said, it would be good to have a UGRID reading test case in the integration tests as well, so let's look at adding a basic test case in to make sure that we can replicate the same behaviour as with the OBJ input, just to be certain.

@sammorrell sammorrell merged commit 9111be1 into develop Aug 31, 2023
1 check passed
@EdHone EdHone deleted the abs-mesh-file branch January 23, 2024 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants