Go to the documentation of this file.
21 #ifndef __AdamsBashforth3_hpp__
22 #define __AdamsBashforth3_hpp__
85 Kokkos::Schedule<Kokkos::Static>,
86 Kokkos::IndexType<int32>
131 return makeUnique<AdamsBashforth3>(*
this);
139 template<
typename activeFunctor>
143 activeFunctor activeP );
148 template<
typename activeFunctor>
153 activeFunctor activeP )
157 auto d_history = history_.deviceVectorAll();
160 Kokkos::parallel_for(
161 "AdamsBashforth3::correct",
167 d_y[i] += dt*(
static_cast<real>(23.0 / 12.0) * ldy
168 -
static_cast<real>(16.0 / 12.0) * d_history[i].dy1_
169 +
static_cast<real>(5.0 / 12.0) * d_history[i].dy2_);
170 d_history[i] = {ldy ,d_history[i].dy1_};
180 #endif //__integration_hpp__
bool readBegin(const char *funcName)
bool setInitialVals(const int32IndexContainer &newIndices, const realx3Vector &y) override
Kokkos::RangePolicy< DefaultExecutionSpace, Kokkos::Schedule< Kokkos::Static >, Kokkos::IndexType< int32 > > rpIntegration
bool predict(real UNUSED(dt), realx3Vector_D &UNUSED(y), realx3Vector_D &UNUSED(dy)) override
bool needSetInitialVals() const override
HistoryFieldType & history_
const auto & pStruct() const
bool readEnd(const char *funcName)
virtual ~AdamsBashforth3()=default
Kokkos::DefaultExecutionSpace DefaultExecutionSpace
bool correct(real dt, realx3Vector_D &y, realx3Vector_D &dy) override
AdamsBashforth3(const word &baseName, repository &owner, const pointStructure &pStruct, const word &method)
const word & baseName() const
virtual bool check(const char *operation) const
bool intRange(real dt, realx3Vector_D &y, realx3Vector_D &dy, activeFunctor activeP)
add_vCtor(integration, AdamsBashforth3, word)
INLINE_FUNCTION iIstream & operator>>(iIstream &str, AB3History &ab3)
@ END_LIST
End list [isseparator].
range activeRange() const
INLINE_FUNCTION iOstream & operator<<(iOstream &str, const AB3History &ab3)
bool intAll(real dt, realx3Vector_D &y, realx3Vector_D &dy, range activeRng)
@ BEGIN_LIST
Begin list [isseparator].
uniquePtr< integration > clone() const override
TypeInfo("AdamsBashforth3")
INLINE_FUNCTION_H viewType & deviceVectorAll()