Commit 2a373c96 authored by niklas.baumgarten's avatar niklas.baumgarten
Browse files

updated time series in assemble

parent e12434b3
......@@ -19,8 +19,7 @@ protected:
public:
explicit IStochasticLinearTransportAssemble(IStochasticTransportProblem *problem) :
ILinearTimeAssemble(TimeSeries(problem->GetStartTime(), problem->GetEndTime(),
problem->GetStepSize(), "UniformTimeSeries")),
ILinearTimeAssemble(),
problem(problem) {
};
......@@ -32,10 +31,10 @@ public:
return problem;
};
TimeSeries GetTimeSeries(const Vector &u) {
return TimeSeries(problem->GetStartTime(), problem->GetEndTime(),
problem->GetCFL() * u.GetMesh().MeshWidth().second,
"UniformTimeSeries");
void SetTimeSeries(const Vector &u) {
timeSeries = TimeSeries(problem->GetStartTime(), problem->GetEndTime(),
problem->GetStepSize(u.GetMesh().MaxMeshWidth()),
"UniformTimeSeries");
}
virtual IDiscretization *GetDisc() = 0;
......
......@@ -23,7 +23,7 @@ public:
config.get("T", T);
}
double GetStepSize() { return CFL * meshes.fineMesh().MaxMeshWidth(); }
double GetStepSize(int h) { return CFL * h; }
double GetStartTime() { return t0; }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment