Skip to content

Commit

Permalink
use ./ if path is not defined
Browse files Browse the repository at this point in the history
  • Loading branch information
Ping-Hsuan committed Dec 11, 2023
1 parent 59cf3a2 commit 360c1cb
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions code/mpar.f
Original file line number Diff line number Diff line change
Expand Up @@ -643,6 +643,11 @@ subroutine set_morfle(morfle)
data mor4 /'.mor'/

len = ltrunc(path,132)

if(len.lt.1) then
call chcopy(path1(1),'./',2)
endif

if (indx1(path1(len),'/',1).lt.1) then
call chcopy(path1(len+1),'/',1)
endif
Expand Down

0 comments on commit 360c1cb

Please sign in to comment.