46 #ifndef ROL_TIMESTAMP_HPP
47 #define ROL_TIMESTAMP_HPP
52 #include "ROL_Ptr.hpp"
65 template<
typename Real>
69 template<
typename Real>
87 const std::vector<Real>& t_ref,
90 auto timeStamp = ROL::makePtr<std::vector<ROL::TimeStamp<Real>>>(num_steps);
92 Real dt = (t_final-t_initial)/num_steps;
96 (*timeStamp)[
k].t.resize(nt);
97 for(
size_type l=0; l<nt; ++l ) (*timeStamp)[
k].t[l] = dt*(
k+t_ref[l]);
98 (*timeStamp)[
k].k =
k;
107 #endif // ROL_TIMESTAMP_HPP
static TimeStampsPtr< Real > make_uniform(Real t_initial, Real t_final, const std::vector< Real > &t_ref, size_type num_steps)
Create a vector of uniform TimeStamp objects for the interval [t_initial,t_final] where each step has...
typename PV< Real >::size_type size_type
Contains local time step information.
TimeStamp & operator=(const TimeStamp &ts)
Ptr< std::vector< TimeStamp< Real >>> TimeStampsPtr