clearer logic for preprocessor statements
This commit is contained in:
parent
af83427e8c
commit
efe9823e62
26
src/IO.f90
26
src/IO.f90
|
@ -45,20 +45,19 @@ module IO
|
||||||
IO_timeStamp
|
IO_timeStamp
|
||||||
#if defined(Marc4DAMASK) || defined(Abaqus)
|
#if defined(Marc4DAMASK) || defined(Abaqus)
|
||||||
public :: &
|
public :: &
|
||||||
#ifdef Abaqus
|
|
||||||
IO_extractValue, &
|
|
||||||
IO_countDataLines, &
|
|
||||||
#endif
|
|
||||||
#ifdef Marc4DAMASK
|
|
||||||
IO_skipChunks, &
|
|
||||||
IO_fixedNoEFloatValue, &
|
|
||||||
IO_fixedIntValue, &
|
|
||||||
IO_countNumericalDataLines, &
|
|
||||||
#endif
|
|
||||||
IO_open_inputFile, &
|
IO_open_inputFile, &
|
||||||
IO_open_logFile, &
|
IO_open_logFile, &
|
||||||
IO_countContinuousIntValues, &
|
IO_countContinuousIntValues, &
|
||||||
IO_continuousIntValues
|
IO_continuousIntValues, &
|
||||||
|
#if defined(Abaqus)
|
||||||
|
IO_extractValue, &
|
||||||
|
IO_countDataLines
|
||||||
|
#elif defined(Marc4DAMASK)
|
||||||
|
IO_skipChunks, &
|
||||||
|
IO_fixedNoEFloatValue, &
|
||||||
|
IO_fixedIntValue, &
|
||||||
|
IO_countNumericalDataLines
|
||||||
|
#endif
|
||||||
#endif
|
#endif
|
||||||
private :: &
|
private :: &
|
||||||
IO_verifyFloatValue, &
|
IO_verifyFloatValue, &
|
||||||
|
@ -356,7 +355,7 @@ subroutine IO_open_inputFile(fileUnit,modelName)
|
||||||
|
|
||||||
integer(pInt) :: myStat
|
integer(pInt) :: myStat
|
||||||
character(len=1024) :: path
|
character(len=1024) :: path
|
||||||
#ifdef Abaqus
|
#if defined(Abaqus)
|
||||||
integer(pInt) :: fileType
|
integer(pInt) :: fileType
|
||||||
|
|
||||||
fileType = 1_pInt ! assume .pes
|
fileType = 1_pInt ! assume .pes
|
||||||
|
@ -427,8 +426,7 @@ recursive function abaqus_assembleInputFile(unit1,unit2) result(createSuccess)
|
||||||
200 createSuccess =.false.
|
200 createSuccess =.false.
|
||||||
|
|
||||||
end function abaqus_assembleInputFile
|
end function abaqus_assembleInputFile
|
||||||
#endif
|
#elif defined(Marc4DAMASK)
|
||||||
#ifdef Marc4DAMASK
|
|
||||||
path = trim(modelName)//inputFileExtension
|
path = 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,el=myStat,ext_msg=path)
|
if (myStat /= 0_pInt) call IO_error(100_pInt,el=myStat,ext_msg=path)
|
||||||
|
|
Loading…
Reference in New Issue