Skip to content

Commit 31fab07

Browse files
committed
Add check_recalculate! for MultipleEnvironments
1 parent 01fd986 commit 31fab07

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/environments/multiple_envs.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,13 @@ function recalculate!(env::MultipleEnvironments, args...; kwargs...)
5959
return env
6060
end
6161

62+
function check_recalculate!(env::MultipleEnvironments, args...; kwargs...)
63+
for subenv in env.envs
64+
check_recalculate!(subenv, args...; kwargs...)
65+
end
66+
return env
67+
end
68+
6269
#maybe this can be used to provide compatibility with existing code?
6370
function Base.getproperty(envs::MultipleEnvironments, prop::Symbol)
6471
if prop === :solver

0 commit comments

Comments
 (0)