Go to the documentation of this file.
21 #ifndef __AdamsBashforth4_hpp__
22 #define __AdamsBashforth4_hpp__
90 Kokkos::Schedule<Kokkos::Static>,
91 Kokkos::IndexType<int32>
136 return makeUnique<AdamsBashforth4>(*
this);
144 template<
typename activeFunctor>
148 activeFunctor activeP );
153 template<
typename activeFunctor>
158 activeFunctor activeP )
162 auto d_history = history_.deviceVectorAll();
165 Kokkos::parallel_for(
166 "AdamsBashforth4::correct",
173 static_cast<real>(55.0 / 24.0) * d_dy[i]
174 -
static_cast<real>(59.0 / 24.0) * d_history[i].dy1_
175 +
static_cast<real>(37.0 / 24.0) * d_history[i].dy2_
176 -
static_cast<real>( 9.0 / 24.0) * d_history[i].dy3_
178 d_history[i].dy3_ = d_history[i].dy2_;
179 d_history[i].dy2_ = d_history[i].dy1_;
180 d_history[i].dy1_ = d_dy[i];
190 #endif //__integration_hpp__
bool intRange(real dt, realx3Vector_D &y, realx3Vector_D &dy, activeFunctor activeP)
bool readBegin(const char *funcName)
uniquePtr< integration > clone() const override
const auto & pStruct() const
bool readEnd(const char *funcName)
Kokkos::DefaultExecutionSpace DefaultExecutionSpace
add_vCtor(integration, AdamsBashforth4, word)
TypeInfo("AdamsBashforth4")
const word & baseName() const
virtual bool check(const char *operation) const
virtual ~AdamsBashforth4()=default
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
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)
AdamsBashforth4(const word &baseName, repository &owner, const pointStructure &pStruct, const word &method)
@ BEGIN_LIST
Begin list [isseparator].
bool setInitialVals(const int32IndexContainer &newIndices, const realx3Vector &y) override
HistoryFieldType & history_
INLINE_FUNCTION_H viewType & deviceVectorAll()
bool intAll(real dt, realx3Vector_D &y, realx3Vector_D &dy, range activeRng)
bool correct(real dt, realx3Vector_D &y, realx3Vector_D &dy) override