Skip to content

Commit

Permalink
work
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Aug 7, 2024
1 parent 0329f74 commit 5e31fbd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/MadsFunc.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
3 changes: 1 addition & 2 deletions src/MadsIO.jl
Original file line number Diff line number Diff line change
Expand Up @@ -742,7 +742,6 @@ function getproblemdir()
problemdir = "."
elseif source_path == ""
problemdir = Base.pkgdir(Mads)

else
problemdir = first(splitdir(source_path))
end
Expand All @@ -751,7 +750,7 @@ function getproblemdir()
end

"""
Get file name root
Get the filename root
$(DocumentFunction.documentfunction(getrootname;
argtext=Dict("filename"=>"file name"),
Expand Down

0 comments on commit 5e31fbd

Please sign in to comment.