Skip to content
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

Add neighbor list unit test #64

Merged
merged 3 commits into from
Jul 17, 2020
Merged

Conversation

streeve
Copy link
Member

@streeve streeve commented Jun 26, 2020

These tests are very similar to those in Cabana.

This also ensures that we don't test with more than one MPI rank (except for the future Comm test) and updates unit_test file license years.

One more towards #44

@streeve streeve requested a review from sslattery June 29, 2020 22:57
@streeve streeve force-pushed the unittest_neighbor branch from dcadc10 to dd70f51 Compare July 16, 2020 19:14
@@ -46,4 +50,7 @@ macro(CabanaMD_add_tests)
endforeach()
endmacro()

CabanaMD_add_tests(MPI NAMES Integrator)
CabanaMD_add_tests(NAMES Integrator Neighbor)
Copy link
Collaborator

Choose a reason for hiding this comment

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

Will you add the MPI case back here for tests that require multiple ranks?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes, that should only be the Comm class


//---------------------------------------------------------------------------//
template <class ListType, class PositionSlice>
void checkFullNeighborListPartialRange( const ListType &list,
Copy link
Collaborator

Choose a reason for hiding this comment

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

I'm wondering if we can combine the full and partial test to reduce code here but I think this is OK for now as it is essentially what I implemented in Cabana

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I should do that both here and in Cabana

@streeve streeve merged commit d92e577 into ECP-copa:master Jul 17, 2020
@streeve streeve deleted the unittest_neighbor branch July 17, 2020 19:58
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.

2 participants