-
Notifications
You must be signed in to change notification settings - Fork 63
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
make blueprint helpers available to multiple source files #713
make blueprint helpers available to multiple source files #713
Conversation
ceeeb6d
to
9f16af9
Compare
@cyrush, @nselliott: I think that this PR is ready for review. Here's an overview of the main changes:
This should help with #682 and some of the abstractions @nselliott has been working on. Let me know what you think! |
/// file: conduit_blueprint_util_mesh.cpp | ||
/// | ||
//----------------------------------------------------------------------------- | ||
|
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.
Since this file has no code that does anything, are you including it as a place for further additions?
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.
That's correct; I want the small amount of code that's in conduit_blueprint_util_o2mrelation.hpp
and I figured that I'd include a corresponding source file just in case we ever need to put anything in it.
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.
Thanks @xjrc , this is good.
Joe looks good, One overarching question I have Should we use:
I feel like a case could be made for Maybe the same should apply to o2m, but I didn't catch it there? Want to make sure we consider it. |
I like the look of |
@cyrush: I just remembered why I chose the current ordering: to better match with the nesting scheme used for |
Hmm, lets ponder a bit more. |
…o 'conduit_blueprint_util_mesh'.
…nate the unused 'coords' function. * Integrated the 'blueprint::util::mesh' constants into the BP meshing test cases. * Made all of the 'blueprint::util::mesh' constants all caps to match Conduit convention.
… 'blueprint_util_mesh' module.
…non-const 'generate_offsets'. * Added regression tests for the new public Blueprint query functions in 't_blueprint_mesh_query.cpp'.
d9753ea
to
666c0be
Compare
Still not sure what is best here. Note: Everything under Also what do we think about Honestly -- we can also consider placing those methods simply in |
That seems to me like a reasonable factor of differentiation.
I think that the former is fine, and I certainly prefer it to the latter. I'd like to separate out these functions to help identify them as utilities that have lower-level use cases and interfaces. I will change the namespace ordering. |
…o2mrelation}::util'.'
sorry one more nitpick: we have |
…mrelation}::utils'.
Point well taken; the changes have been made. |
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.
thanks @xjrc , looks good!
@cyrush: Can you merge (if Travis looks okay; it failed on grabbing packages, so it's likely on their end)? It looks like I don't have the proper permissions. |
yes, I just re-started travis. But it is strange you can't merge, we should figure that out. |
This pull request aims to clean up and abstract the Blueprint helper code (e.g. internal code for querying information about a mesh, like its dimsnion, striding, etc.) so that it's available to source code outside of
conduit_blueprint_mesh.cpp
. This refactoring will be particularly useful when tackling #682 and finalizing #642 as it will make this helper functionality available to theconduit_blueprint_mpi_mesh.cpp
source code.At a more fine-grained level, this pull request includes the following modifications:
conduit_blueprint_mesh.cpp
andconduit_blueprint_mpi_mesh.cpp
.conduit_blueprint_mpi_mesh.cpp
and write associated test cases.