Skip to content

Commit

Permalink
Removes unnecessary reversal of dense output at end of solve
Browse files Browse the repository at this point in the history
  • Loading branch information
fruzsinaagocs committed Mar 22, 2024
1 parent 1d02c4c commit 7290db4
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions include/oscode/solver.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -493,21 +493,6 @@ void Solution::solve() {
}
}

// If integrating backwards, reverse dense output (because it will have been
// reversed at the start)
if (de_sys_->is_interpolated == 1) {
if (de_sys_->Winterp.sign_ == 0) {
dotimes.reverse();
dosol.reverse();
dodsol.reverse();
}
} else {
if (sign == 0) {
dotimes.reverse();
dosol.reverse();
dodsol.reverse();
}
}

// Write output to file if prompted
if (!(*fo == 0)) {
Expand Down

0 comments on commit 7290db4

Please sign in to comment.