Skip to content
Snippets Groups Projects
Commit a7cc7cc6 authored by Stephan Hilb's avatar Stephan Hilb
Browse files

close connectors

parent a198e206
Branches
No related tags found
No related merge requests found
...@@ -193,6 +193,7 @@ function run_while(fwhile, alg) ...@@ -193,6 +193,7 @@ function run_while(fwhile, alg)
k += 1 k += 1
step!(st) step!(st)
end end
close(st)
return st return st
end end
......
...@@ -48,6 +48,7 @@ information to act as a checkpoint for continuing the algorithm at that point. ...@@ -48,6 +48,7 @@ information to act as a checkpoint for continuing the algorithm at that point.
abstract type State end abstract type State end
function init end function init end
function Base.close(::State) end
function step! end function step! end
function fetch end function fetch end
......
...@@ -88,6 +88,10 @@ function init(alg::DualTVDDAlgorithm{<:DualTVL1ROFOpProblem}) ...@@ -88,6 +88,10 @@ function init(alg::DualTVDDAlgorithm{<:DualTVL1ROFOpProblem})
return DualTVDDState(alg, p, subax, cons) return DualTVDDState(alg, p, subax, cons)
end end
function Base.close(st::DualTVDDState)
foreach(close, st.cons)
end
function intersectin(a, b) function intersectin(a, b)
c = intersect(a, b) c = intersect(a, b)
az = first(a) - one(eltype(a)) az = first(a) - one(eltype(a))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment