statUnit was not opened, stat file was written to STDERR

This commit is contained in:
Martin Diehl 2019-09-22 15:56:37 -07:00
parent e3de324fee
commit c0210659b6
2 changed files with 3 additions and 2 deletions

View File

@ -353,8 +353,7 @@ program DAMASK_spectral
write(fileUnit) 'startingIncrement:', interface_restartInc ! start with writing out the previous inc
write(fileUnit) 'eoh'
close(fileUnit) ! end of header
open(newunit=statUnit,file=trim(getSolverJobName())//&
'.sta',form='FORMATTED',status='REPLACE')
open(newunit=statUnit,file=trim(getSolverJobName())//'.sta',form='FORMATTED',status='REPLACE')
write(statUnit,'(a)') 'Increment Time CutbackLevel Converged IterationsNeeded' ! statistics file
if (iand(debug_level(debug_spectral),debug_levelBasic) /= 0) &
write(6,'(/,a)') ' header of result and statistics file written out'

View File

@ -261,6 +261,8 @@ program DAMASK_FEM
end select
enddo
open(newunit=statUnit,file=trim(getSolverJobName())//'.sta',form='FORMATTED',status='REPLACE')
write(statUnit,'(a)') 'Increment Time CutbackLevel Converged IterationsNeeded' ! statistics file
loadCaseLooping: do currentLoadCase = 1, size(loadCases)
time0 = time ! load case start time