error 100 now reports iostat return value (as "element")
This commit is contained in:
parent
88f94cbbec
commit
ae7adcaa2b
36
code/IO.f90
36
code/IO.f90
|
@ -167,7 +167,7 @@ recursive function IO_read(fileUnit,reset) result(line)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
open(newunit=unitOn(stack),iostat=myStat,file=pathOn(stack)) ! open included file
|
open(newunit=unitOn(stack),iostat=myStat,file=pathOn(stack)) ! open included file
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=pathOn(stack))
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=pathOn(stack))
|
||||||
|
|
||||||
line = IO_read(fileUnit)
|
line = IO_read(fileUnit)
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ subroutine IO_open_file(fileUnit,relPath)
|
||||||
|
|
||||||
path = trim(getSolverWorkingDirectoryName())//relPath
|
path = trim(getSolverWorkingDirectoryName())//relPath
|
||||||
open(fileUnit,status='old',iostat=myStat,file=path)
|
open(fileUnit,status='old',iostat=myStat,file=path)
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
||||||
end subroutine IO_open_file
|
end subroutine IO_open_file
|
||||||
|
|
||||||
|
@ -271,7 +271,7 @@ subroutine IO_open_jobFile(fileUnit,ext)
|
||||||
|
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'.'//ext
|
path = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'.'//ext
|
||||||
open(fileUnit,status='old',iostat=myStat,file=path)
|
open(fileUnit,status='old',iostat=myStat,file=path)
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
||||||
end subroutine IO_open_jobFile
|
end subroutine IO_open_jobFile
|
||||||
|
|
||||||
|
@ -328,18 +328,18 @@ subroutine IO_open_inputFile(fileUnit,modelName)
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//inputFileExtension(fileType)
|
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//inputFileExtension(fileType)
|
||||||
open(fileUnit+1,status='old',iostat=myStat,file=path)
|
open(fileUnit+1,status='old',iostat=myStat,file=path)
|
||||||
endif
|
endif
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path) ! ensure that any file opened works
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//inputFileExtension(fileType)//'_assembly'
|
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//inputFileExtension(fileType)//'_assembly'
|
||||||
open(fileUnit,iostat=myStat,file=path)
|
open(fileUnit,iostat=myStat,file=path)
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
if (.not.abaqus_assembleInputFile(fileUnit,fileUnit+1_pInt)) call IO_error(103_pInt) ! strip comments and concatenate any "include"s
|
if (.not.abaqus_assembleInputFile(fileUnit,fileUnit+1_pInt)) call IO_error(103_pInt) ! strip comments and concatenate any "include"s
|
||||||
close(fileUnit+1_pInt)
|
close(fileUnit+1_pInt)
|
||||||
#endif
|
#endif
|
||||||
#ifdef Marc4DAMASK
|
#ifdef Marc4DAMASK
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//inputFileExtension
|
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//inputFileExtension
|
||||||
open(fileUnit,status='old',iostat=myStat,file=path)
|
open(fileUnit,status='old',iostat=myStat,file=path)
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
end subroutine IO_open_inputFile
|
end subroutine IO_open_inputFile
|
||||||
|
@ -363,7 +363,7 @@ subroutine IO_open_logFile(fileUnit)
|
||||||
|
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//LogFileExtension
|
path = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//LogFileExtension
|
||||||
open(fileUnit,status='old',iostat=myStat,file=path)
|
open(fileUnit,status='old',iostat=myStat,file=path)
|
||||||
if (myStat /= 0) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
||||||
end subroutine IO_open_logFile
|
end subroutine IO_open_logFile
|
||||||
#endif
|
#endif
|
||||||
|
@ -387,7 +387,7 @@ subroutine IO_write_jobFile(fileUnit,ext)
|
||||||
|
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'.'//ext
|
path = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'.'//ext
|
||||||
open(fileUnit,status='replace',iostat=myStat,file=path)
|
open(fileUnit,status='replace',iostat=myStat,file=path)
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
||||||
end subroutine IO_write_jobFile
|
end subroutine IO_write_jobFile
|
||||||
|
|
||||||
|
@ -418,7 +418,7 @@ subroutine IO_write_jobRealFile(fileUnit,ext,recMultiplier)
|
||||||
recl=pReal,iostat=myStat,file=path)
|
recl=pReal,iostat=myStat,file=path)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
||||||
end subroutine IO_write_jobRealFile
|
end subroutine IO_write_jobRealFile
|
||||||
|
|
||||||
|
@ -443,13 +443,13 @@ subroutine IO_write_jobIntFile(fileUnit,ext,recMultiplier)
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'.'//ext
|
path = trim(getSolverWorkingDirectoryName())//trim(getSolverJobName())//'.'//ext
|
||||||
if (present(recMultiplier)) then
|
if (present(recMultiplier)) then
|
||||||
open(fileUnit,status='replace',form='unformatted',access='direct', &
|
open(fileUnit,status='replace',form='unformatted',access='direct', &
|
||||||
recl=pInt*recMultiplier,iostat=myStat,file=path)
|
recl=pInt*recMultiplier,iostat=myStat,file=path)
|
||||||
else
|
else
|
||||||
open(fileUnit,status='replace',form='unformatted',access='direct', &
|
open(fileUnit,status='replace',form='unformatted',access='direct', &
|
||||||
recl=pInt,iostat=myStat,file=path)
|
recl=pInt,iostat=myStat,file=path)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if (myStat /= 0_pInt) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
||||||
end subroutine IO_write_jobIntFile
|
end subroutine IO_write_jobIntFile
|
||||||
|
|
||||||
|
@ -474,12 +474,12 @@ subroutine IO_read_realFile(fileUnit,ext,modelName,recMultiplier)
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//'.'//ext
|
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//'.'//ext
|
||||||
if (present(recMultiplier)) then
|
if (present(recMultiplier)) then
|
||||||
open(fileUnit,status='old',form='unformatted',access='direct', &
|
open(fileUnit,status='old',form='unformatted',access='direct', &
|
||||||
recl=pReal*recMultiplier,iostat=myStat,file=path)
|
recl=pReal*recMultiplier,iostat=myStat,file=path)
|
||||||
else
|
else
|
||||||
open(fileUnit,status='old',form='unformatted',access='direct', &
|
open(fileUnit,status='old',form='unformatted',access='direct', &
|
||||||
recl=pReal,iostat=myStat,file=path)
|
recl=pReal,iostat=myStat,file=path)
|
||||||
endif
|
endif
|
||||||
if (myStat /= 0) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
||||||
end subroutine IO_read_realFile
|
end subroutine IO_read_realFile
|
||||||
|
|
||||||
|
@ -504,10 +504,10 @@ subroutine IO_read_intFile(fileUnit,ext,modelName,recMultiplier)
|
||||||
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//'.'//ext
|
path = trim(getSolverWorkingDirectoryName())//trim(modelName)//'.'//ext
|
||||||
if (present(recMultiplier)) then
|
if (present(recMultiplier)) then
|
||||||
open(fileUnit,status='old',form='unformatted',access='direct', &
|
open(fileUnit,status='old',form='unformatted',access='direct', &
|
||||||
recl=pInt*recMultiplier,iostat=myStat,file=path)
|
recl=pInt*recMultiplier,iostat=myStat,file=path)
|
||||||
else
|
else
|
||||||
open(fileUnit,status='old',form='unformatted',access='direct', &
|
open(fileUnit,status='old',form='unformatted',access='direct', &
|
||||||
recl=pInt,iostat=myStat,file=path)
|
recl=pInt,iostat=myStat,file=path)
|
||||||
endif
|
endif
|
||||||
if (myStat /= 0) call IO_error(100_pInt,ext_msg=path)
|
if (myStat /= 0) call IO_error(100_pInt,ext_msg=path)
|
||||||
|
|
||||||
|
@ -1485,6 +1485,8 @@ subroutine IO_error(error_ID,el,ip,g,ext_msg)
|
||||||
msg = 'illegal texture transformation specified'
|
msg = 'illegal texture transformation specified'
|
||||||
case (160_pInt)
|
case (160_pInt)
|
||||||
msg = 'no entries in config part'
|
msg = 'no entries in config part'
|
||||||
|
case (165_pInt)
|
||||||
|
msg = 'homogenization configuration'
|
||||||
case (170_pInt)
|
case (170_pInt)
|
||||||
msg = 'no homogenization specified via State Variable 2'
|
msg = 'no homogenization specified via State Variable 2'
|
||||||
case (180_pInt)
|
case (180_pInt)
|
||||||
|
|
Loading…
Reference in New Issue