Skip to content
Snippets Groups Projects
Commit a77ad123 authored by Dmitri Naumov's avatar Dmitri Naumov
Browse files

[PL] PhF; split push back btw. init and postTS.

parent a6979aaa
No related branches found
No related tags found
No related merge requests found
...@@ -207,9 +207,19 @@ public: ...@@ -207,9 +207,19 @@ public:
std::vector<double>& local_b_data, std::vector<double>& local_Jac_data, std::vector<double>& local_b_data, std::vector<double>& local_Jac_data,
LocalCoupledSolutions const& local_coupled_solutions) override; LocalCoupledSolutions const& local_coupled_solutions) override;
void preTimestepConcrete(std::vector<double> const& /*local_x*/, void initializeConcrete() override
double const /*t*/, {
double const /*delta_t*/) override unsigned const n_integration_points =
_integration_method.getNumberOfPoints();
for (unsigned ip = 0; ip < n_integration_points; ip++)
{
_ip_data[ip].pushBackState();
}
}
void postTimestepConcrete(std::vector<double> const& /*local_x*/
) override
{ {
unsigned const n_integration_points = unsigned const n_integration_points =
_integration_method.getNumberOfPoints(); _integration_method.getNumberOfPoints();
......
...@@ -140,6 +140,14 @@ void PhaseFieldProcess<DisplacementDim>::initializeConcreteProcess( ...@@ -140,6 +140,14 @@ void PhaseFieldProcess<DisplacementDim>::initializeConcreteProcess(
DisplacementDim>::RowsAtCompileTime, DisplacementDim>::RowsAtCompileTime,
getExtrapolator(), _local_assemblers, getExtrapolator(), _local_assemblers,
&LocalAssemblerInterface::getIntPtEpsilon)); &LocalAssemblerInterface::getIntPtEpsilon));
// Initialize local assemblers after all variables have been set.
const int process_id = 0;
ProcessLib::ProcessVariable const& pv = getProcessVariables(process_id)[0];
GlobalExecutor::executeSelectedMemberOnDereferenced(
&LocalAssemblerInterface::initialize, _local_assemblers,
pv.getActiveElementIDs(), *_local_to_global_index_map);
} }
template <int DisplacementDim> template <int DisplacementDim>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment