Skip to content

Commit 9b68f13

Browse files
committed
pfasst: Always recv during cycle_up.
1 parent f31aa1e commit 9b68f13

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

src/pfasst/controller/pfasst_impl.hpp

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,11 +118,8 @@ namespace pfasst
118118
auto trns = level_iter.transfer();
119119

120120
trns->interpolate(fine, crse, true);
121-
122-
if (this->comm->status->previous_is_iterating()) {
123-
fine->recv(comm, tag(level_iter), false);
124-
trns->interpolate_initial(fine, crse);
125-
}
121+
fine->recv(comm, tag(level_iter), false);
122+
trns->interpolate_initial(fine, crse);
126123

127124
if (level_iter < this->finest()) {
128125
perform_sweeps(level_iter.level);
@@ -224,9 +221,11 @@ namespace pfasst
224221
template<typename time>
225222
void PFASST<time>::post()
226223
{
227-
this->comm->status->post();
228-
for (auto l = this->coarsest() + 1; l <= this->finest(); ++l) {
229-
l.current()->post(comm, tag(l));
224+
if (this->comm->status->previous_is_iterating()) {
225+
this->comm->status->post();
226+
for (auto l = this->coarsest() + 1; l <= this->finest(); ++l) {
227+
l.current()->post(comm, tag(l));
228+
}
230229
}
231230
}
232231
} // ::pfasst

0 commit comments

Comments
 (0)