unified string length
This commit is contained in:
parent
83cf062318
commit
747a340599
|
@ -392,7 +392,7 @@ end subroutine material_init
|
||||||
subroutine material_parseHomogenization
|
subroutine material_parseHomogenization
|
||||||
|
|
||||||
integer :: h
|
integer :: h
|
||||||
character(len=65536) :: tag
|
character(len=pStringLen) :: tag
|
||||||
|
|
||||||
allocate(homogenization_type(size(config_homogenization)), source=HOMOGENIZATION_undefined_ID)
|
allocate(homogenization_type(size(config_homogenization)), source=HOMOGENIZATION_undefined_ID)
|
||||||
allocate(thermal_type(size(config_homogenization)), source=THERMAL_isothermal_ID)
|
allocate(thermal_type(size(config_homogenization)), source=THERMAL_isothermal_ID)
|
||||||
|
@ -482,11 +482,11 @@ end subroutine material_parseHomogenization
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
subroutine material_parseMicrostructure
|
subroutine material_parseMicrostructure
|
||||||
|
|
||||||
character(len=65536), dimension(:), allocatable :: &
|
character(len=pStringLen), dimension(:), allocatable :: &
|
||||||
strings
|
strings
|
||||||
integer, allocatable, dimension(:) :: chunkPos
|
integer, allocatable, dimension(:) :: chunkPos
|
||||||
integer :: e, m, c, i
|
integer :: e, m, c, i
|
||||||
character(len=65536) :: &
|
character(len=pStringLen) :: &
|
||||||
tag
|
tag
|
||||||
|
|
||||||
allocate(microstructure_Nconstituents(size(config_microstructure)), source=0)
|
allocate(microstructure_Nconstituents(size(config_microstructure)), source=0)
|
||||||
|
@ -540,7 +540,7 @@ end subroutine material_parseMicrostructure
|
||||||
subroutine material_parsePhase
|
subroutine material_parsePhase
|
||||||
|
|
||||||
integer :: sourceCtr, kinematicsCtr, stiffDegradationCtr, p
|
integer :: sourceCtr, kinematicsCtr, stiffDegradationCtr, p
|
||||||
character(len=65536), dimension(:), allocatable :: str
|
character(len=pStringLen), dimension(:), allocatable :: str
|
||||||
|
|
||||||
|
|
||||||
allocate(phase_elasticity(size(config_phase)),source=ELASTICITY_undefined_ID)
|
allocate(phase_elasticity(size(config_phase)),source=ELASTICITY_undefined_ID)
|
||||||
|
@ -594,9 +594,9 @@ subroutine material_parsePhase
|
||||||
#if defined(__GFORTRAN__) || defined(__PGI)
|
#if defined(__GFORTRAN__) || defined(__PGI)
|
||||||
str = ['GfortranBug86277']
|
str = ['GfortranBug86277']
|
||||||
str = config_phase(p)%getStrings('(source)',defaultVal=str)
|
str = config_phase(p)%getStrings('(source)',defaultVal=str)
|
||||||
if (str(1) == 'GfortranBug86277') str = [character(len=65536)::]
|
if (str(1) == 'GfortranBug86277') str = [character(len=pStringLen)::]
|
||||||
#else
|
#else
|
||||||
str = config_phase(p)%getStrings('(source)',defaultVal=[character(len=65536)::])
|
str = config_phase(p)%getStrings('(source)',defaultVal=[character(len=pStringLen)::])
|
||||||
#endif
|
#endif
|
||||||
do sourceCtr = 1, size(str)
|
do sourceCtr = 1, size(str)
|
||||||
select case (trim(str(sourceCtr)))
|
select case (trim(str(sourceCtr)))
|
||||||
|
@ -618,9 +618,9 @@ subroutine material_parsePhase
|
||||||
#if defined(__GFORTRAN__) || defined(__PGI)
|
#if defined(__GFORTRAN__) || defined(__PGI)
|
||||||
str = ['GfortranBug86277']
|
str = ['GfortranBug86277']
|
||||||
str = config_phase(p)%getStrings('(kinematics)',defaultVal=str)
|
str = config_phase(p)%getStrings('(kinematics)',defaultVal=str)
|
||||||
if (str(1) == 'GfortranBug86277') str = [character(len=65536)::]
|
if (str(1) == 'GfortranBug86277') str = [character(len=pStringLen)::]
|
||||||
#else
|
#else
|
||||||
str = config_phase(p)%getStrings('(kinematics)',defaultVal=[character(len=65536)::])
|
str = config_phase(p)%getStrings('(kinematics)',defaultVal=[character(len=pStringLen)::])
|
||||||
#endif
|
#endif
|
||||||
do kinematicsCtr = 1, size(str)
|
do kinematicsCtr = 1, size(str)
|
||||||
select case (trim(str(kinematicsCtr)))
|
select case (trim(str(kinematicsCtr)))
|
||||||
|
@ -635,9 +635,9 @@ subroutine material_parsePhase
|
||||||
#if defined(__GFORTRAN__) || defined(__PGI)
|
#if defined(__GFORTRAN__) || defined(__PGI)
|
||||||
str = ['GfortranBug86277']
|
str = ['GfortranBug86277']
|
||||||
str = config_phase(p)%getStrings('(stiffness_degradation)',defaultVal=str)
|
str = config_phase(p)%getStrings('(stiffness_degradation)',defaultVal=str)
|
||||||
if (str(1) == 'GfortranBug86277') str = [character(len=65536)::]
|
if (str(1) == 'GfortranBug86277') str = [character(len=pStringLen)::]
|
||||||
#else
|
#else
|
||||||
str = config_phase(p)%getStrings('(stiffness_degradation)',defaultVal=[character(len=65536)::])
|
str = config_phase(p)%getStrings('(stiffness_degradation)',defaultVal=[character(len=pStringLen)::])
|
||||||
#endif
|
#endif
|
||||||
do stiffDegradationCtr = 1, size(str)
|
do stiffDegradationCtr = 1, size(str)
|
||||||
select case (trim(str(stiffDegradationCtr)))
|
select case (trim(str(stiffDegradationCtr)))
|
||||||
|
@ -664,7 +664,7 @@ end subroutine material_parsePhase
|
||||||
subroutine material_parseTexture
|
subroutine material_parseTexture
|
||||||
|
|
||||||
integer :: j,t
|
integer :: j,t
|
||||||
character(len=65536), dimension(:), allocatable :: strings ! Values for given key in material config
|
character(len=pStringLen), dimension(:), allocatable :: strings ! Values for given key in material config
|
||||||
integer, dimension(:), allocatable :: chunkPos
|
integer, dimension(:), allocatable :: chunkPos
|
||||||
real(pReal), dimension(3,3) :: transformation ! maps texture to microstructure coordinate system
|
real(pReal), dimension(3,3) :: transformation ! maps texture to microstructure coordinate system
|
||||||
real(pReal), dimension(3) :: Eulers ! Euler angles in degrees from file
|
real(pReal), dimension(3) :: Eulers ! Euler angles in degrees from file
|
||||||
|
@ -715,14 +715,12 @@ subroutine material_parseTexture
|
||||||
call IO_error(157,t)
|
call IO_error(157,t)
|
||||||
end select
|
end select
|
||||||
enddo
|
enddo
|
||||||
if(dNeq(math_det33(transformation),1.0_pReal)) call IO_error(157,t)
|
|
||||||
call transformation_%fromMatrix(transformation)
|
call transformation_%fromMatrix(transformation)
|
||||||
texture_orientation(t) = texture_orientation(t) * transformation_
|
texture_orientation(t) = texture_orientation(t) * transformation_
|
||||||
endif
|
endif
|
||||||
|
|
||||||
enddo
|
enddo
|
||||||
|
|
||||||
|
|
||||||
end subroutine material_parseTexture
|
end subroutine material_parseTexture
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue