Skip to content

Commit

Permalink
TaskAdvection: fill -> memset
Browse files Browse the repository at this point in the history
  • Loading branch information
freifrauvonbleifrei committed Mar 24, 2023
1 parent 1796928 commit 9077e3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/distributed_third_level/TaskAdvection.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class TaskAdvection : public Task {
phi_->resize(numLocalElements);

for (size_t i = 0; i < nsteps_; ++i) {
std::fill(phi_->begin(), phi_->end(), 0.);
std::memset(phi_->data(), 0, phi_->size() * sizeof(CombiDataType));
// compute the gradient in the original dfg_, then update into phi_ and
// swap at the end of each time step
auto& u_dot_dphi = *phi_;
Expand Down

0 comments on commit 9077e3b

Please sign in to comment.