Skip to content

Commit

Permalink
recursivemkdir
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Jun 25, 2024
1 parent 11e7b87 commit d4f480f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/MadsCalibrate.jl
Original file line number Diff line number Diff line change
Expand Up @@ -206,6 +206,9 @@ Returns:
function calibrate(madsdata::AbstractDict; tolX::Number=1e-4, tolG::Number=1e-6, tolOF::Number=1e-3, tolOFcount::Integer=5, minOF::Number=1e-3, maxEval::Integer=1000, maxIter::Integer=100, maxJacobians::Integer=100, lambda::Number=100.0, lambda_mu::Number=10.0, np_lambda::Integer=10, show_trace::Bool=false, quiet::Bool=Mads.quiet, usenaive::Bool=false, store_optimization_progress::Bool=true, localsa::Bool=false, parallel_optimization::Bool=parallel_optimization)
rootname = Mads.getmadsrootname(madsdata)
madsdir = Mads.getmadsproblemdir(madsdata)
if !isdir(dirname(rootname))
Mads.recursivemkdir(dirname(rootname))
end
if !isdir(madsdir)
Mads.recursivemkdir(madsdir)
end
Expand Down

0 comments on commit d4f480f

Please sign in to comment.