Skip to content

Commit

Permalink
Fix typo in activating elements
Browse files Browse the repository at this point in the history
  • Loading branch information
mitchphillipson committed Sep 27, 2023
1 parent 980f6c0 commit 500244c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/GamsSet.jl
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,12 @@ Deactivate the given elements from the set.
function deactivate(GU::GamsUniverse,s::Symbol,elements...)
N = 0
for elm in elements
if GU[:s][elm].active
GU[:s][elm].active = false
if GU[s][elm].active
GU[s][elm].active = false
N+=1
end
end
GU[:s].length += -N
GU[s].length += -N
end

"""
Expand All @@ -70,12 +70,12 @@ Activate the given elements from the set.
function activate(GU::GamsUniverse,s::Symbol,elements...)
N = 0
for elm in elements
if !GU[:s][elm].active
GU[:s][elm].active = true
if !GU[s][elm].active
GU[s][elm].active = true
N+=1
end
end
GU[:s].length += N
GU[s].length += N

end

Expand Down

0 comments on commit 500244c

Please sign in to comment.