Skip to content

Commit

Permalink
Merge pull request #303 from nilsdeppe/datavector_divide
Browse files Browse the repository at this point in the history
Add support for dividing doubles by Datavectors
  • Loading branch information
nilsdeppe committed Oct 27, 2017
2 parents 4a5c4d0 + 07ea614 commit 1dc58be
Show file tree
Hide file tree
Showing 6 changed files with 238 additions and 121 deletions.
9 changes: 1 addition & 8 deletions src/DataStructures/DataVector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -67,14 +67,7 @@ DataVector& DataVector::operator=(DataVector&& rhs) noexcept {
}
/// \endcond

void DataVector::set_data_ref(double* start, size_t size) {
size_ = size;
owned_data_ = decltype(owned_data_){};
data_ = decltype(data_){start, size_};
owning_ = false;
}

void DataVector::pup(PUP::er& p) { // NOLINT
void DataVector::pup(PUP::er& p) noexcept { // NOLINT
p | size_;
if (p.isUnpacking()) {
owning_ = true;
Expand Down

0 comments on commit 1dc58be

Please sign in to comment.