skip empty lines (i.e. blank line at the end)

This commit is contained in:
Martin Diehl 2020-01-21 11:45:11 +01:00
parent 9b4f773a0b
commit 1857a5e58a
1 changed files with 2 additions and 1 deletions

View File

@ -140,11 +140,12 @@ program DAMASK_spectral
!--------------------------------------------------------------------------------------------------
! reading information from load case file and to sanity checks
allocate (loadCases(0)) ! array of load cases
fileContent = IO_read_ASCII(trim(loadCaseFile))
allocate (loadCases(0)) ! array of load cases
do currentLoadCase = 1, size(fileContent)
line = fileContent(currentLoadCase)
if (IO_isBlank(line)) cycle
chunkPos = IO_stringPos(line)
do i = 1, chunkPos(1) ! reading compulsory parameters for loadcase