Commit 5d48f9ed authored by Dmitry Yu. Naumov's avatar Dmitry Yu. Naumov
Browse files

Merge branch 'FixGlobalVectorReleaseBug' into 'master'

Fix global vector release bug

Closes #3007

See merge request ogs/ogs!3098
parents 837a7da8 624f5ffe
......@@ -689,6 +689,10 @@ void postTimestepForAllProcesses(
pcs.computeSecondaryVariable(t, dt, x, x_dot, process_id);
pcs.postTimestep(process_solutions, t, dt, process_id);
}
for (auto& x_dot : x_dots)
{
NumLib::GlobalVectorProvider::provider.releaseVector(*x_dot);
}
}
NumLib::NonlinearSolverStatus TimeLoop::solveUncoupledEquationSystems(
......@@ -932,6 +936,10 @@ TimeLoop::~TimeLoop()
{
NumLib::GlobalVectorProvider::provider.releaseVector(*x);
}
for (auto* x : _process_solutions_prev)
{
NumLib::GlobalVectorProvider::provider.releaseVector(*x);
}
for (auto* x : _solutions_of_last_cpl_iteration)
{
......
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