Skip to content

Adds the multimat component to Axom#565

Merged
kennyweiss merged 127 commits intodevelopfrom
feature/kweiss/multimat-revamp
Jun 21, 2022
Merged

Adds the multimat component to Axom#565
kennyweiss merged 127 commits intodevelopfrom
feature/kweiss/multimat-revamp

Conversation

@kennyweiss
Copy link
Member

@kennyweiss kennyweiss commented May 22, 2021

Summary

  • This PR adds a new component to Axom: Multmat
  • Multimat helps manage multimaterial field data
  • The vast majority of multimat was developed by @raineyeh over Summer 2018 in collaboration with @kennyweiss and @agcapps
  • I rebased the code on top of our current develop branch
TODO:

@kennyweiss kennyweiss added Slam Issues related to Axom's 'slam' component multimat Related to the Multimat component labels May 22, 2021
@kennyweiss
Copy link
Member Author

Note: I rebased this to develop starting from the following branch: feature/weiss27/multimat-rebase:
https://github.com/LLNL/axom/tree/feature/weiss27/multimat-rebase

@kennyweiss kennyweiss force-pushed the feature/kweiss/multimat-revamp branch from d6e3800 to c643a70 Compare June 19, 2021 02:41
@kennyweiss kennyweiss force-pushed the feature/kweiss/multimat-revamp branch from 30f0eb6 to c0c3a74 Compare July 24, 2021 00:44
@kennyweiss
Copy link
Member Author

I merged in the changes from @raineyeh (thanks Raine!), fixed the last remaining compiler errors and warnings and rebased against develop.

This branch is now ready for review.

Misc: fix BivariateMap->getSubset elements
…d iter.index()

Misc: fix some warnings and compilation errors from lc compiler
…Map to Submap.

Also: Fixes for compilation error/warnings on LC machine
Deals with rename of slam's RelationSet (subset returned by relation operator[]) to RelationSubset
Comment on lines +494 to +495
std::vector<SetPosType> m_cellMatRel_beginsVec;
std::vector<SetPosType> m_cellMatRel_indicesVec;
Copy link
Member

Choose a reason for hiding this comment

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

Still to be SLAM-ified?

Copy link
Member

Choose a reason for hiding this comment

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

SLAM-ed? SLAM-erated?

Copy link
Contributor

Choose a reason for hiding this comment

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

SLAM is designed not to own any data - these are probably the backing std::vectors for our relations.

Comment on lines +499 to +500
std::vector<SetPosType> m_matCellRel_beginsVec;
std::vector<SetPosType> m_matCellRel_indicesVec;
Copy link
Member

Choose a reason for hiding this comment

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

Still to be converted to SLAM?

Comment on lines +513 to +518
std::vector<std::string> m_fieldNameVec;
std::vector<FieldMapping> m_fieldMappingVec;
std::vector<MapBaseType*> m_mapVec;
std::vector<DataTypeSupported> m_dataTypeVec;
std::vector<DataLayout> m_fieldDataLayoutVec;
std::vector<SparsityLayout> m_fieldSparsityLayoutVec;
Copy link
Member

Choose a reason for hiding this comment

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

Convert, or not?

};

//Layout used during the static mode
std::vector<Layout> m_layout_when_static; //per field
Copy link
Member

Choose a reason for hiding this comment

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

Convert?

@agcapps
Copy link
Member

agcapps commented Jun 20, 2022

@kanye-quest , @kennyweiss , I expect to approve this tomorrow early. I do have a few comments that I'd like addressed, most of which have to do with the Doxygen and/or obvious typos. I flagged a few uses of std::vector, not for this PR. If they should be converted to SLAM, that should go in a subsequent PR.

Copy link
Member

@agcapps agcapps left a comment

Choose a reason for hiding this comment

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

I found a few incautious uses of getFieldIdx that I'd like you to test before using return value. Please search for any other unguarded use of that function. Approved, pending those return value fixes and the documentation fixes I proposed.

@kennyweiss kennyweiss merged commit 87125b1 into develop Jun 21, 2022
@kennyweiss kennyweiss deleted the feature/kweiss/multimat-revamp branch June 21, 2022 23:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

multimat Related to the Multimat component Reviewed Slam Issues related to Axom's 'slam' component

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants