adams-bashforth5

This commit is contained in:
hamidrezanorouzi
2022-10-21 02:54:08 +03:30
parent da556625de
commit db0da79a72
6 changed files with 291 additions and 4 deletions

View File

@ -96,7 +96,11 @@ bool pFlow::AdamsBashforth4::intAll(
+ static_cast<real>(37.0 / 24.0) * d_history[i].dy2_
- static_cast<real>( 9.0 / 24.0) * d_history[i].dy3_
);
d_history[i] = {d_dy[i] ,d_history[i].dy1_, d_history[i].dy2_};
d_history[i].dy3_ = d_history[i].dy2_;
d_history[i].dy2_ = d_history[i].dy1_;
d_history[i].dy1_ = d_dy[i];
});
Kokkos::fence();