Commit 99a59832 authored by Christoph Lehmann's avatar Christoph Lehmann
Browse files

[PL] Moved posttimestep hook

parent c913139d
......@@ -374,6 +374,22 @@ struct LocalAssemblerInterface : public ProcessLib::LocalAssemblerInterface,
return *material_states_[integration_point].material_state_variables;
}
void postTimestepConcrete(Eigen::VectorXd const& /*local_x*/,
double const /*t*/,
double const /*dt*/) override
{
unsigned const n_integration_points =
integration_method_.getNumberOfPoints();
for (unsigned ip = 0; ip < n_integration_points; ip++)
{
// TODO re-evaluate part of the assembly in order to be consistent?
material_states_[ip].pushBackState();
}
prev_states_ = current_states_;
}
protected:
ThermoRichardsMechanicsProcessData<DisplacementDim>& process_data_;
......
......@@ -282,22 +282,6 @@ public:
this->prev_states_ = this->current_states_;
}
void postTimestepConcrete(Eigen::VectorXd const& /*local_x*/,
double const /*t*/,
double const /*dt*/) override
{
unsigned const n_integration_points =
this->integration_method_.getNumberOfPoints();
for (unsigned ip = 0; ip < n_integration_points; ip++)
{
// TODO re-evaluate part of the assembly in order to be consistent?
this->material_states_[ip].pushBackState();
}
this->prev_states_ = this->current_states_;
}
void computeSecondaryVariableConcrete(
double const t, double const dt, Eigen::VectorXd const& local_x,
Eigen::VectorXd const& local_x_dot) override;
......
Supports Markdown
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