Skip to content

Commit f94e5c7

Browse files
committed
done bug fixes in interface_impl and sdc_impl
1 parent 3022436 commit f94e5c7

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/pfasst/controller/interface_impl.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ namespace pfasst
8585
template<typename time>
8686
void Controller<time>::set_step(size_t n)
8787
{
88-
t += (n - step) * dt;
88+
t += ((int)n - (int)step) * dt;
8989
step = n;
9090
}
9191

src/pfasst/controller/sdc_impl.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ namespace pfasst
77
void SDC<time>::run()
88
{
99
auto sweeper = this->get_level(0);
10-
10+
1111
for (; this->get_time() < this->get_end_time(); this->advance_time()) {
1212
bool initial = this->get_step() == 0;
1313
for (this->set_iteration(0);
@@ -26,7 +26,7 @@ namespace pfasst
2626
}
2727
}
2828
sweeper->post_step();
29-
sweeper->advance();
29+
if(this->get_time() + this->get_time_step() < this->get_end_time()) sweeper->advance();
3030
}
3131
}
3232
} // ::pfasst

0 commit comments

Comments
 (0)