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 @@ -97,7 +97,7 @@ namespace pfasst
9797 template <typename time>
9898 void Controller<time>::set_step(size_t n)
9999 {
100- t += (n - step) * dt;
100+ t += (( int ) n - ( int ) step) * dt;
101101 step = n;
102102 }
103103
Original file line number Diff line number Diff line change @@ -22,7 +22,7 @@ namespace pfasst
2222 void SDC<time>::run()
2323 {
2424 auto sweeper = this ->get_level (0 );
25-
25+
2626 for (; this ->get_time () < this ->get_end_time (); this ->advance_time ()) {
2727 bool initial = this ->get_step () == 0 ;
2828 for (this ->set_iteration (0 );
@@ -41,7 +41,7 @@ namespace pfasst
4141 }
4242 }
4343 sweeper->post_step ();
44- sweeper->advance ();
44+ if ( this -> get_time () + this -> get_time_step () < this -> get_end_time ()) sweeper->advance ();
4545 }
4646 }
4747} // ::pfasst
You can’t perform that action at this time.
0 commit comments