22#ifndef INCLUDE_EXADG_TIME_INTEGRATION_INTERPOLATE_H_
23#define INCLUDE_EXADG_TIME_INTEGRATION_INTERPOLATE_H_
34template<
typename VectorType>
38 std::vector<VectorType const *>
const & solutions,
39 std::vector<double>
const & times)
44 for(
unsigned int k = 0; k < solutions.size(); ++k)
49 for(
unsigned int j = 0; j < solutions.size(); ++j)
53 l_k *= (time - times[j]) / (times[k] - times[j]);
57 dst.add(l_k, *solutions[k]);