verbose error message
This commit is contained in:
parent
ac7bc4b9ed
commit
70a3db275a
|
@ -53,7 +53,10 @@ subroutine DAMASK_interface_init
|
|||
|
||||
call getoutdir(wd, lenOutDir)
|
||||
ierr = CHDIR(wd)
|
||||
if (ierr /= 0) call quit(0)
|
||||
if (ierr /= 0) then
|
||||
write(6,'(a20,a,a16)') ' working directory "',trim(wd),'" does not exist'
|
||||
call quit(1)
|
||||
endif
|
||||
|
||||
#include "compilation_info.f90"
|
||||
|
||||
|
|
|
@ -67,7 +67,10 @@ subroutine DAMASK_interface_init
|
|||
inquire(5, name=wd) ! determine inputputfile
|
||||
wd = wd(1:scan(wd,'/',back=.true.))
|
||||
ierr = CHDIR(wd)
|
||||
if (ierr /= 0) call quit(0)
|
||||
if (ierr /= 0) then
|
||||
write(6,'(a20,a,a16)') ' working directory "',trim(wd),'" does not exist'
|
||||
call quit(1)
|
||||
endif
|
||||
|
||||
end subroutine DAMASK_interface_init
|
||||
|
||||
|
|
Loading…
Reference in New Issue