Skip to content

Conversation

@HazelCullom
Copy link
Contributor

@HazelCullom HazelCullom commented Nov 2, 2022

Created the MeshField class and Field class that are templated over the SliceWrapper and SliceController types as abstractions to hide the underlying implementation, whether it be cabana, omega_h, kokkos, or something else.
Created a parallel_for absraction that adds parallel_for functionality and hides the underlying implementation from the user

@HazelCullom HazelCullom requested a review from cwsmith November 2, 2022 19:03
@cwsmith
Copy link
Contributor

cwsmith commented Nov 2, 2022

@HenryCullom Please add a description of the PR (i.e., what was added) in the opening post.

Copy link
Contributor

@cwsmith cwsmith left a comment

Choose a reason for hiding this comment

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

Looks good to me. I pushed a commit to use std::move(...) on the slice object in makeField(...). Based on valgrind, this doesn't appear like it was required, but I think the code better expresses the intent of the Field instance owning the slice.

One suggestion, I think we should prefix the test file names with test to make it clearer that they are tests and not implementations of the header files. -- Just pushed this with c9bccae.

This was referenced Nov 3, 2022
@cwsmith cwsmith merged commit 3ef4ec0 into main Nov 3, 2022
@HazelCullom HazelCullom deleted the parallel-for-abstraction branch November 3, 2022 20:20
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.

3 participants