-
Notifications
You must be signed in to change notification settings - Fork 91
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
Improve naming of common member functions #1400
Conversation
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.
I like the changes, especially get_num_elems
was a bit lengthy. The deprecation warning in array
still has to be fixed.
7bc8285
to
b373c77
Compare
array
members to match standard libraryThere 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.
I only checked if the old versions are called anywhere. Since it compiles and passes tests, I'm assuming that all instance have been correctly replaced.
b373c77
to
a0ea878
Compare
Kudos, SonarCloud Quality Gate passed! 0 Bugs 86.1% Coverage The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
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.
I think the renaming in device_matrix_data
and index_set
are not appropriate.
I would like to point out that these changes will affect the MFEM integration (use of |
a0ea878
to
e7e7bb4
Compare
format! |
Kudos, SonarCloud Quality Gate passed! 0 Bugs 81.6% Coverage The version of Java (11.0.3) you have used to run this analysis is deprecated and we will stop accepting it soon. Please update to at least Java 17. |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## develop #1400 +/- ##
===========================================
+ Coverage 89.30% 91.33% +2.03%
===========================================
Files 688 688
Lines 56338 56089 -249
===========================================
+ Hits 50311 51228 +917
+ Misses 6027 4861 -1166 ☔ View full report in Codecov by Sentry. |
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.
LGTM! I think with the get_
prefix and only for array, this makes a lot more sense. Should we also replace the internal member of array num_elems_
to size_
as well ?
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.
code LGTM. but I would like to ensure the others are okay with this naming change
#include <iostream> | ||
#include <Kokkos_Core.hpp> | ||
#include <map> | ||
#include <string> | ||
|
||
|
||
#include <omp.h> | ||
|
||
|
||
#include <ginkgo/ginkgo.hpp> | ||
#include <Kokkos_Core.hpp> |
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.
should Kokkos_Core be in the third party section?
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.
I think we can handle that with #1358?
- rename num_elems_ members - use this-> in matrix_data - fix incorrect test Co-authored-by: Yuhsiang M. Tsai <[email protected]> Co-authored-by: Pratik Nayak <[email protected]>
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.
LGTM!
Applies the following renamings:
array::get_num_elems()
toget_size()
matrix_data::ensure_row_major_order()
tosort_row_major()
sinceensure
doesn't really make clear whether this is a predicate/check or an action.device_matrix_data::get_num_elems()
todevice_matrix_data::get_num_stored_elements()