Skip to content

Commit

Permalink
saltelli
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Aug 4, 2024
1 parent d198950 commit 987eb4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MadsSensitivityAnalysis.jl
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,7 @@ keytext=Dict("N"=>"number of samples [default=`100`]",
"parallel"=>"set to true if the model runs should be performed in parallel [default=`false`]",
"checkpointfrequency"=>"check point frequency [default=`N`]")))
"""
function saltelli(madsdata::AbstractDict; N::Integer=100, seed::Integer=-1, rng::Union{Nothing,Random.AbstractRNG,DataType}=nothing, restartdir::AbstractString="", parallel::Bool=false, checkpointfrequency::Integer=N, save::Bool=true, load::Bool=false)
function saltelli(madsdata::AbstractDict; N::Integer=100, seed::Integer=-1, rng::Union{Nothing,Random.AbstractRNG,DataType}=nothing, restartdir::AbstractString="", parallel::Bool=false, checkpointfrequency::Integer=N, save::Bool=true, load::Bool=true)
if load
rootname = Mads.getmadsrootname(madsdata)
filename = "$(rootname)-saltelli-$(N).jld2"
Expand Down Expand Up @@ -1362,7 +1362,7 @@ function efast(md::AbstractDict; N::Integer=100, M::Integer=6, gamma::Number=4,
else
=#
# If # of processors is > Nr*nprime+(Nr+1) compute model output in parallel
if robutpmap
if robustpmap
if restart
madsinfo("RobustPmap of forward runs with restart for parameter $(string(paramkeys[k])) ...")
m = RobustPmap.crpmap(i->collect(values(f(merge(paramalldict, OrderedCollections.OrderedDict{Union{Symbol,String},Float64}(zip(paramkeys, X[i, :])))))), checkpointfrequency, joinpath(restartdir, "efast_$(kL)_$k"), 1:size(X, 1))
Expand Down

0 comments on commit 987eb4c

Please sign in to comment.