File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments