changed keyword in spectral geometry file for multiplication of entries from "copies of" to "of"
This commit is contained in:
parent
0e33725395
commit
4a6e08bb69
12
code/IO.f90
12
code/IO.f90
|
@ -1104,7 +1104,7 @@ end function IO_countDataLines
|
||||||
!> @brief count items in consecutive lines depending on lines
|
!> @brief count items in consecutive lines depending on lines
|
||||||
!> @details Marc: ints concatenated by "c" as last char or range of values a "to" b
|
!> @details Marc: ints concatenated by "c" as last char or range of values a "to" b
|
||||||
!> Abaqus: triplet of start,stop,inc
|
!> Abaqus: triplet of start,stop,inc
|
||||||
!> Spectral: ints concatenated range of a "to" b, multiple entries with a "copies of" b
|
!> Spectral: ints concatenated range of a "to" b, multiple entries with a "of" b
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
integer(pInt) function IO_countContinuousIntValues(myUnit)
|
integer(pInt) function IO_countContinuousIntValues(myUnit)
|
||||||
|
|
||||||
|
@ -1127,8 +1127,7 @@ integer(pInt) function IO_countContinuousIntValues(myUnit)
|
||||||
if (IO_lc(IO_stringValue(line,myPos,2_pInt)) == 'to' ) then ! found range indicator
|
if (IO_lc(IO_stringValue(line,myPos,2_pInt)) == 'to' ) then ! found range indicator
|
||||||
IO_countContinuousIntValues = 1_pInt + IO_intValue(line,myPos,3_pInt) - IO_intValue(line,myPos,1_pInt)
|
IO_countContinuousIntValues = 1_pInt + IO_intValue(line,myPos,3_pInt) - IO_intValue(line,myPos,1_pInt)
|
||||||
exit ! only one single range indicator allowed
|
exit ! only one single range indicator allowed
|
||||||
else if (IO_lc(IO_stringValue(line,myPos,2_pInt)) == 'copies' .and. &
|
else if (IO_lc(IO_stringValue(line,myPos,2_pInt)) == 'of' ) then ! found multiple entries indicator
|
||||||
IO_lc(IO_stringValue(line,myPos,3_pInt)) == 'of' ) then ! found multiple entries indicator
|
|
||||||
IO_countContinuousIntValues = IO_intValue(line,myPos,1_pInt)
|
IO_countContinuousIntValues = IO_intValue(line,myPos,1_pInt)
|
||||||
exit ! only one single multiplier allowed
|
exit ! only one single multiplier allowed
|
||||||
else
|
else
|
||||||
|
@ -1162,7 +1161,7 @@ integer(pInt) function IO_countContinuousIntValues(myUnit)
|
||||||
! First integer in array is counter
|
! First integer in array is counter
|
||||||
!> @details Marc: ints concatenated by "c" as last char, range of a "to" b, or named set
|
!> @details Marc: ints concatenated by "c" as last char, range of a "to" b, or named set
|
||||||
! Abaqus: triplet of start,stop,inc or named set
|
! Abaqus: triplet of start,stop,inc or named set
|
||||||
! Spectral: ints concatenated range of a "to" b, multiple entries with a "copies of" b
|
! Spectral: ints concatenated range of a "to" b, multiple entries with a "of" b
|
||||||
!--------------------------------------------------------------------------------------------------
|
!--------------------------------------------------------------------------------------------------
|
||||||
function IO_continuousIntValues(myUnit,maxN,lookupName,lookupMap,lookupMaxN)
|
function IO_continuousIntValues(myUnit,maxN,lookupName,lookupMap,lookupMaxN)
|
||||||
|
|
||||||
|
@ -1205,10 +1204,9 @@ function IO_continuousIntValues(myUnit,maxN,lookupName,lookupMap,lookupMaxN)
|
||||||
IO_continuousIntValues(1+IO_continuousIntValues(1)) = i
|
IO_continuousIntValues(1+IO_continuousIntValues(1)) = i
|
||||||
enddo
|
enddo
|
||||||
exit
|
exit
|
||||||
else if (myPos(1) > 3_pInt .and. IO_lc(IO_stringValue(line,myPos,2_pInt)) == 'copies' &
|
else if (myPos(1) > 2_pInt .and. IO_lc(IO_stringValue(line,myPos,2_pInt)) == 'of' ) then ! found multiple entries indicator
|
||||||
.and. IO_lc(IO_stringValue(line,myPos,3_pInt)) == 'of' ) then ! found multiple entries indicator
|
|
||||||
IO_continuousIntValues(1) = IO_intValue(line,myPos,1_pInt)
|
IO_continuousIntValues(1) = IO_intValue(line,myPos,1_pInt)
|
||||||
IO_continuousIntValues(2:IO_continuousIntValues(1)+1) = IO_intValue(line,myPos,4_pInt)
|
IO_continuousIntValues(2:IO_continuousIntValues(1)+1) = IO_intValue(line,myPos,3_pInt)
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
do i = 1_pInt,myPos(1)-1_pInt ! interpret up to second to last value
|
do i = 1_pInt,myPos(1)-1_pInt ! interpret up to second to last value
|
||||||
|
|
Loading…
Reference in New Issue