Skip to content

Enhance MergeMeshes with mixed field support#1863

Open
BradWhitlock wants to merge 36 commits into
developfrom
feature/whitlock/bump_mergemeshes_mixvars
Open

Enhance MergeMeshes with mixed field support#1863
BradWhitlock wants to merge 36 commits into
developfrom
feature/whitlock/bump_mergemeshes_mixvars

Conversation

@BradWhitlock

@BradWhitlock BradWhitlock commented May 12, 2026

Copy link
Copy Markdown
Member

This PR resolves #1860 by enhancing the MergeMeshes classes so they support element-associated mixed fields.

  • Enhanced MergeMeshes classes (the derived one can handle matsets and mixed-fields)
  • Added dispatch functions for mixed fields that use matset views plus the field to access field data
  • Added tests for different matset flavors
  • Added tests for merging mixed fields
  • Other mixed-field candidates are identified in Complete mixed-field support in BUMP/MIR #1864

Comment thread src/axom/bump/MergeMeshes.hpp Outdated
template <typename FuncType>
void dispatchMixedField(conduit::Node &n_matset, conduit::Node &n_field, FuncType &&func)
{
axom::bump::views::dispatch_material_field(n_matset, n_field, [&](auto matsetView) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Does this require #include "axom/bump/views/dispatch_material_field.hpp" in this file? My local version of this branch won't compile without it, although I'm not sure what's different about my configuration that it doesn't get propagated to here.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Yes, I'll add that.

@BradWhitlock BradWhitlock marked this pull request as draft May 14, 2026 00:10
@BradWhitlock

Copy link
Copy Markdown
Member Author

I converted to Draft because I need to debug some weirdness on GPU platforms. I think I also have some problems with traversing mixed fields in some cases that could merit some design changes. :(

@BradWhitlock BradWhitlock marked this pull request as ready for review May 22, 2026 16:41
Comment thread src/axom/bump/MergeMeshes.hpp Outdated

@jcs15c jcs15c left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me! It works exactly like I needed it to in my original context, so thank you very much for putting this in!

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.

Enhance axom::bump::MergeMeshes with mixed-field support

2 participants