From 5e31fbde04cd19fd548b0f09232b43893566aaf8 Mon Sep 17 00:00:00 2001 From: monty Date: Wed, 7 Aug 2024 17:52:48 -0600 Subject: [PATCH] work --- src/MadsFunc.jl | 3 +-- src/MadsIO.jl | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/MadsFunc.jl b/src/MadsFunc.jl index 62f4576f..a7a23f7e 100644 --- a/src/MadsFunc.jl +++ b/src/MadsFunc.jl @@ -409,8 +409,7 @@ function getrestartdir(madsdata::AbstractDict, suffix::AbstractString="") end end if restartdir == "" - root = splitdir(getmadsrootname(madsdata, version=true))[end] - restartdir = root * "_restart" + restartdir = getmadsrootname(madsdata; version=true) * "_restart" if !isdir(restartdir) try recursivemkdir(restartdir; filename=false) diff --git a/src/MadsIO.jl b/src/MadsIO.jl index 911dde50..b8030e68 100644 --- a/src/MadsIO.jl +++ b/src/MadsIO.jl @@ -742,7 +742,6 @@ function getproblemdir() problemdir = "." elseif source_path == "" problemdir = Base.pkgdir(Mads) - else problemdir = first(splitdir(source_path)) end @@ -751,7 +750,7 @@ function getproblemdir() end """ -Get file name root +Get the filename root $(DocumentFunction.documentfunction(getrootname; argtext=Dict("filename"=>"file name"),