-
Notifications
You must be signed in to change notification settings - Fork 299
Add ExodusII_IO option to set {node,elem} unique_ids based on {node,elem}_num_map #4308
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
Merged
Merged
Changes from all commits
Commits
Show all changes
46 commits
Select commit
Hold shift + click to select a range
10aec36
Add ExodusII_IO API, boolean controlling whether elem_num_map and nod…
jwpeterson e97c61b
Add code to set Node's unique_id manually based on node_num_map
jwpeterson f952f7e
Handle _set_unique_ids_from_maps flag while reading in elements
jwpeterson a98c327
And do the same node indexing steps for Bezier extraction data
jwpeterson 12c5b6d
Add lambda which determines the libmesh_node id for the current Elem …
jwpeterson f4af06b
Move lambda outside of elem block loop
jwpeterson e9b7a0a
Use helper lambda for Bezier extraction data as well
jwpeterson 98cfd03
Also store/set _set_unique_ids_from_maps flag on the ExodusII_IO_Helper
jwpeterson dfed7de
Update libmesh_node_id lookup in ExodusII_IO_Helper::read_edge_blocks…
jwpeterson 4e68688
Use same variable naming, casts when determining libmesh_node_id
jwpeterson 4a501df
Add ExodusII_IO_Helper::get_libmesh_node_id() helper function
jwpeterson c214402
Drop get_libmesh_node_id() lambda
jwpeterson 0ef5997
Use slightly more general std::make_tuple in loop declaration
jwpeterson 7f3a7a7
Change ExodusII_IO_Helper::get_libmesh_node_id() to take a 1-based Ex…
jwpeterson 8dc9d41
Call get_libmesh_node_id() when reading nodeset info
jwpeterson c7d0fdc
Call get_libmesh_node_id() in ExodusII_IO_Helper::read_nodal_var_valu…
jwpeterson 6914226
Call ExodusII_IO_Helper::get_libmesh_node_id() from ExodusII_IO::read()
jwpeterson 6396a4d
Add comment about _set_unique_ids_from_maps flag behavior when writin…
jwpeterson 7393af0
Store unique_ids in the node_num_map when writing Nodes
jwpeterson 3be119a
Add exo file with non-trivial node_num_map for unit testing
jwpeterson 44ac77d
Run bootstrap
jwpeterson 4e605fe
Add ExodusII_IO unit test that sets node unique ids from the node_num…
jwpeterson ff34a93
Add test verifying that the unique_ids have been set
jwpeterson 59b43b7
Add test of same mesh without setting the flag
jwpeterson aa07bff
Add helper function that the test calls twice
jwpeterson 36066fe
Add comments about setting _end_elem_id, and that we don't set the un…
jwpeterson dd06e91
Add ExodusII_IO_Helper::get_libmesh_elem_id()
jwpeterson 4619ba4
Call ExodusII_IO_Helper::get_libmesh_elem_id() while adding Elems to …
jwpeterson d1be057
Call ExodusII_IO_Helper::get_libmesh_elem_id() while reading sidesets
jwpeterson 2df7237
Call ExodusII_IO_Helper::get_libmesh_elem_id() while reading elemsets
jwpeterson 7bc1081
Move code that sets Elem unique_ids to separate function
jwpeterson ee0c780
Add/use ExodusII_IO_Helper::set_node_unique_id()
jwpeterson 44c6974
Add private ExodusII_IO_Helper::set_dof_object_unique_id() implementa…
jwpeterson a31cc2e
Use libmesh_vector_at macro for bounds checking
jwpeterson c4a1ae9
Fix indentation level
jwpeterson 9f59bea
Support set_unique_ids_from_maps flag when writing elem_num_map
jwpeterson 5d7c442
Use ExodusII_IO_Helper::get_libmesh_elem_id() in read_elemental_var_v…
jwpeterson 3a4bfe4
Add ExodusII_IO_Helper::get_libmesh_id()
jwpeterson 84fb1a8
Call ExodusII_IO_Helper::get_libmesh_id() from ExodusII_IO_Helper::ge…
jwpeterson b3d98f4
Rename unit test
jwpeterson 22ff09e
Add exo file with non-trivial elem_num_map_for unit testing
jwpeterson d9007dd
Run bootstrap
jwpeterson 205c8be
Add testExodusSetElemUniqueIdsFromMaps() unit test
jwpeterson fc30535
Fix compilation issues identified by CI
jwpeterson 39f7770
Improve comments on the _set_unique_ids_from_maps flag
jwpeterson b969c48
Change name set_{node,elem}_unique_id() -> conditionally_set_{node,el…
jwpeterson 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
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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's add a comment on why one might want to do this? (ReplicatedMesh using
O(max_id)storage)