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

@ -80,8 +80,10 @@ protected:
//realx3PointField_D& dy2_;
// this is a device
HistoryFieldType history_;
HistoryFieldType& history_;
using rpIntegration = Kokkos::RangePolicy<
DefaultExecutionSpace,
@ -159,7 +161,9 @@ bool pFlow::AdamsBashforth4::intRange(
+ 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();