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

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

parent a77ad123
No related branches found
No related tags found
No related merge requests found
...@@ -88,9 +88,19 @@ public: ...@@ -88,9 +88,19 @@ public:
std::vector<double>& local_rhs_data, std::vector<double>& local_rhs_data,
std::vector<double>& local_Jac_data) override; std::vector<double>& local_Jac_data) 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();
......
...@@ -202,6 +202,14 @@ void ThermoHydroMechanicsProcess<DisplacementDim>::initializeConcreteProcess( ...@@ -202,6 +202,14 @@ void ThermoHydroMechanicsProcess<DisplacementDim>::initializeConcreteProcess(
MeshLib::getOrCreateMeshProperty<double>( MeshLib::getOrCreateMeshProperty<double>(
const_cast<MeshLib::Mesh&>(mesh), "temperature_interpolated", const_cast<MeshLib::Mesh&>(mesh), "temperature_interpolated",
MeshLib::MeshItemType::Node, 1); MeshLib::MeshItemType::Node, 1);
// 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