Skip to content

Commit 1ffb657

Browse files
committed
mlsdc, pfasst: Call post_step on all levels.
Signed-off-by: Matthew Emmett <[email protected]>
1 parent 8fa7999 commit 1ffb657

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

include/pfasst/mlsdc.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,9 @@ namespace pfasst
7070

7171
perform_sweeps(this->finest().level);
7272

73-
this->get_finest()->post_step();
73+
for (auto l = this->finest(); l >= this->coarsest(); --l) {
74+
l.current()->post_step();
75+
}
7476

7577
if (this->get_time() + this->get_time_step() < this->get_end_time()) {
7678
this->get_finest()->advance();

include/pfasst/pfasst.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,9 @@ namespace pfasst
7878
cycle_v(this->finest());
7979
}
8080

81-
this->get_finest()->post_step();
81+
for (auto l = this->finest(); l >= this->coarsest(); --l) {
82+
l.current()->post_step();
83+
}
8284

8385
if (nblock < nblocks - 1) {
8486
broadcast();

0 commit comments

Comments
 (0)