Skip to content

Commit

Permalink
Merge pull request #455 from mimiframework/bugfix
Browse files Browse the repository at this point in the history
Fix access to calc_second_order
  • Loading branch information
lrennels authored Apr 14, 2019
2 parents 4874d34 + 1953e29 commit 99a476d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mcs/sobol.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ end

function analyze(sim::SobolSimulation, model_output::AbstractArray{<:Number, N1}; N::Union{Nothing, Int}=nothing) where N1
if N != nothing
sim.calc_second_order ? factor = 2 * length(sim.rvdict) : factor = length(sim.rvdict)
sim.data.calc_second_order ? factor = 2 * length(sim.rvdict) : factor = length(sim.rvdict)
sim.trials = N * (factor + 2)
end

Expand Down

0 comments on commit 99a476d

Please sign in to comment.