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

Merge branch 'HM_enabled_restart' into 'master'

Fixed the initial stress setting in HM

Closes #3105

See merge request ogs/ogs!3463
parents 1296c574 fd107f4d
No related branches found
No related tags found
No related merge requests found
...@@ -826,6 +826,15 @@ std::size_t HydroMechanicsLocalAssembler< ...@@ -826,6 +826,15 @@ std::size_t HydroMechanicsLocalAssembler<
if (name == "sigma_ip") if (name == "sigma_ip")
{ {
if (_process_data.initial_stress != nullptr)
{
OGS_FATAL(
"Setting initial conditions for stress from integration "
"point data and from a parameter '{:s}' is not possible "
"simultaneously.",
_process_data.initial_stress->name);
}
return setSigma(values); return setSigma(values);
} }
if (name == "epsilon_ip") if (name == "epsilon_ip")
......
...@@ -50,7 +50,7 @@ HydroMechanicsProcess<DisplacementDim>::HydroMechanicsProcess( ...@@ -50,7 +50,7 @@ HydroMechanicsProcess<DisplacementDim>::HydroMechanicsProcess(
std::make_unique<IntegrationPointWriter>( std::make_unique<IntegrationPointWriter>(
"sigma_ip", "sigma_ip",
static_cast<int>(mesh.getDimension() == 2 ? 4 : 6) /*n components*/, static_cast<int>(mesh.getDimension() == 2 ? 4 : 6) /*n components*/,
2 /*integration order*/, [this]() { integration_order, [this]() {
// Result containing integration point data for each local // Result containing integration point data for each local
// assembler. // assembler.
std::vector<std::vector<double>> result; std::vector<std::vector<double>> result;
...@@ -70,7 +70,7 @@ HydroMechanicsProcess<DisplacementDim>::HydroMechanicsProcess( ...@@ -70,7 +70,7 @@ HydroMechanicsProcess<DisplacementDim>::HydroMechanicsProcess(
std::make_unique<IntegrationPointWriter>( std::make_unique<IntegrationPointWriter>(
"epsilon_ip", "epsilon_ip",
static_cast<int>(mesh.getDimension() == 2 ? 4 : 6) /*n components*/, static_cast<int>(mesh.getDimension() == 2 ? 4 : 6) /*n components*/,
2 /*integration order*/, [this]() { integration_order, [this]() {
// Result containing integration point data for each local // Result containing integration point data for each local
// assembler. // assembler.
std::vector<std::vector<double>> result; std::vector<std::vector<double>> result;
......
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