Skip to content

Commit e89fa06

Browse files
committed
Address Alexis' comment
1 parent 455d18c commit e89fa06

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

src/batch.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,11 +123,10 @@ function BatchExaModel(
123123
θ_flat = reduce(vcat, θ_sets)
124124
θ = parameter(c, θ_flat)
125125

126-
nc_before = c.ncon
127126
build(c, v, θ, ns, nv, nθ)
128127

129128
# Determine nc per scenario
130-
nc_total = c.ncon - nc_before
129+
nc_total = c.ncon
131130
nc = nc_total ÷ ns
132131
if nc * ns != nc_total
133132
throw(

src/two_stage.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,11 +152,10 @@ function TwoStageExaModel(
152152
θ_flat = reduce(vcat, θ_sets)
153153
θ = parameter(c, θ_flat)
154154

155-
nc_before = c.ncon
156155
build(c, d, v, θ, ns, nv, nθ)
157156

158157
# Determine nc per scenario
159-
nc_total = c.ncon - nc_before
158+
nc_total = c.ncon
160159
nc = nc_total ÷ ns
161160
if nc * ns != nc_total
162161
throw(

0 commit comments

Comments
 (0)