verbose error message

This commit is contained in:
Martin Diehl 2018-07-10 09:53:20 +02:00
parent ac7bc4b9ed
commit 70a3db275a
2 changed files with 8 additions and 2 deletions

View File

@ -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"

View File

@ -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