-
Notifications
You must be signed in to change notification settings - Fork 14
Adding Omega_h as another mesh lib backend #239
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
Draft
magnoxemo
wants to merge
30
commits into
xdg-org:main
Choose a base branch
from
magnoxemo:omega_h
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 4 commits
Commits
Show all changes
30 commits
Select commit
Hold shift + click to select a range
64bcb0d
adding omega_h install path to the build system
magnoxemo b266514
add omega_h to the build system
magnoxemo 8067920
override the pure virtual functions
magnoxemo da32c5b
update CI to include omega_h
magnoxemo b980783
update openmc testing ci to include omega_h as well
magnoxemo e954124
concentrating on changes that are necessary only for omega_h support
magnoxemo a8c9491
keeping my cicd docker file locally
magnoxemo 7387535
Merge branch 'xdg-org:main' into omega_h
magnoxemo afc7b2c
still need to implement parse metadata
magnoxemo 638dd41
implementing tests
magnoxemo b805e6a
compile omega_h with exodus support
magnoxemo b92d362
add omega_h to the docker file
magnoxemo 2b855a8
fix testing mesh file name
magnoxemo 6d85772
Merge branch 'main' into omega_h
magnoxemo e86a8a2
update mesh file name
magnoxemo 2bfa6cc
install seacas in docker file to support exodus mesh in omega_h
magnoxemo 929b883
setting xdg branch in docker file to this branch for now
magnoxemo 7e8a479
update main CI to include seacas
magnoxemo be2d849
update xdg headers and lib pointers to allows using omega_h
magnoxemo 5e003ca
change mesh file against which we will be testing
magnoxemo 0507288
update test mesh
magnoxemo cc0db2d
trying to fix ci by providing seacas prefix path
magnoxemo 634c3a1
Fix CMAKE_PREFIX_PATH formatting in CI workflow
magnoxemo 7a6d1cf
regold test values
magnoxemo 7b36ae7
cleaning up
magnoxemo 461210d
don't build docker from my own branch
magnoxemo fa53c9b
Merge branch 'main' into omega_h
magnoxemo 280fc00
rebase and adapt to API change issue
magnoxemo 5578182
fix openmc testing CI pipeline
magnoxemo ae3bb15
cache seacas in CI as well
magnoxemo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,74 @@ | ||
| #ifndef XDG_OMEGA_H_MESH_MANAGER_H | ||
| #define XDG_OMEGA_H_MESH_MANAGER_H | ||
|
|
||
| #include <map> | ||
| #include <memory> | ||
| #include <utility> | ||
|
|
||
| #include "xdg/mesh_manager_interface.h" | ||
|
|
||
| #include "Omega_h_library.hpp" | ||
| #include "Omega_h_map.hpp" | ||
| #include "Omega_h_mesh.hpp" | ||
| #include "Omega_h_profile.hpp" | ||
| #include "Omega_h_quality.hpp" | ||
| #include "Omega_h_timer.hpp" | ||
|
|
||
| namespace xdg { | ||
|
|
||
| class OmegaHMeshManager : public MeshManager { | ||
| public: | ||
| OmegaHMeshManager(); | ||
| ~OmegaHMeshManager() = default; | ||
|
|
||
| void load_file(const std::string &file_path) override; | ||
|
|
||
| void init() override; | ||
|
|
||
| int num_volumes() const override; | ||
| int num_surfaces() const override; | ||
| int num_ents_of_dimension(int dim) const; | ||
|
|
||
| MeshID create_volume() override; | ||
| void add_surface_to_volume(MeshID volume, MeshID surface, Sense sense, | ||
| bool overwrite = false) override; | ||
|
|
||
| int num_volume_elements(MeshID volume) const override; | ||
| int num_volume_elements() const override; | ||
| int num_volume_faces(MeshID volume) const override; | ||
| int num_surface_faces(MeshID surface) const override; | ||
| int num_vertices() const override; | ||
|
|
||
| std::vector<MeshID> get_volume_elements(MeshID volume) const override; | ||
| std::vector<MeshID> get_surface_faces(MeshID surface) const override; | ||
| std::vector<MeshID> element_connectivity(MeshID element) const override; | ||
| std::vector<MeshID> face_connectivity(MeshID face) const override; | ||
| Vertex vertex_coordinates(MeshID vertex) const override; | ||
| std::vector<Vertex> element_vertices(MeshID element) const override; | ||
| std::array<Vertex, 3> face_vertices(MeshID face) const override; | ||
| SurfaceElementType get_surface_element_type(MeshID surface) const override; | ||
| MeshID adjacent_element(MeshID element, int face) const override; | ||
| double element_volume(MeshID element) const override; | ||
|
|
||
| std::pair<MeshID, MeshID> surface_senses(MeshID surface) const override; | ||
| std::vector<MeshID> get_volume_surfaces(MeshID volume) const override; | ||
| Sense surface_sense(MeshID surface, MeshID volume) const override; | ||
|
|
||
| void parse_metadata() {}; | ||
|
|
||
| Omega_h::Mesh *mesh() { return mesh_.get(); } | ||
| const Omega_h::Mesh *mesh() const { return mesh_.get(); } | ||
|
|
||
| private: | ||
| std::unique_ptr<Omega_h::Library> library_; | ||
| std::unique_ptr<Omega_h::Mesh> mesh_; | ||
|
|
||
| std::map<MeshID, std::pair<MeshID, MeshID>> surface_senses_; | ||
|
|
||
| MeshID next_volume_id_{1}; | ||
| MeshID next_surface_id_{1}; | ||
| }; | ||
|
|
||
| } // namespace xdg | ||
|
|
||
| #endif // XDG_OMEGA_H_MESH_MANAGER_H |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,2 @@ | ||
| #include "xdg/omega_h/mesh_manager.h" | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.