@@ -438,9 +438,10 @@ subroutine inputRead_NelemSets(nElemSets,maxNelemInSet,&
438
438
if (chunkPos(1 ) < 2 ) cycle
439
439
if (IO_lc(strValue(fileContent(l),chunkPos,1 )) == ' define' .and. &
440
440
IO_lc(strValue(fileContent(l),chunkPos,2 )) == ' element' ) then
441
+ chunkPos = strPos(fileContent(l+1 ))
442
+ if (chunkPos(1 ) == 0 ) cycle
441
443
nElemSets = nElemSets + 1
442
444
443
- chunkPos = strPos(fileContent(l+1 ))
444
445
if (containsRange(fileContent(l+1 ),chunkPos)) then
445
446
elemInCurrentSet = 1 + abs ( intValue(fileContent(l+1 ),chunkPos,3 ) &
446
447
- intValue(fileContent(l+1 ),chunkPos,1 ))
@@ -488,9 +489,12 @@ subroutine inputRead_mapElemSets(nameElemSet,mapElemSet,&
488
489
if (chunkPos(1 ) < 2 ) cycle
489
490
if (IO_lc(strValue(fileContent(l),chunkPos,1 )) == ' define' .and. &
490
491
IO_lc(strValue(fileContent(l),chunkPos,2 )) == ' element' ) then
491
- elemSet = elemSet+1
492
- nameElemSet(elemSet) = trim (strValue(fileContent(l),chunkPos,4 ))
493
- mapElemSet(:,elemSet) = continuousIntValues(fileContent(l+1 :),size (mapElemSet,1 )- 1 ,nameElemSet,mapElemSet,size (nameElemSet))
492
+ chunkPos = strPos(fileContent(l+1 ))
493
+ if (chunkPos(1 ) == 0 ) cycle
494
+ chunkPos = strPos(fileContent(l))
495
+ elemSet = elemSet+1
496
+ nameElemSet(elemSet) = trim (strValue(fileContent(l),chunkPos,4 ))
497
+ mapElemSet(:,elemSet) = continuousIntValues(fileContent(l+1 :),size (mapElemSet,1 )- 1 ,nameElemSet,mapElemSet,size (nameElemSet))
494
498
end if
495
499
end do
496
500
0 commit comments