Skip to content

Commit 95a1093

Browse files
committed
Bugfix for Statusline for restarts. The timestep is not yet computed in initial analyze. Hence, do not print statusline at start of simulation similar to when computing from scratch.
1 parent 377ebc6 commit 95a1093

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/analyze/analyze.f90

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,6 +287,7 @@ SUBROUTINE Analyze(Time,iter)
287287
USE MOD_Output, ONLY: OutputToFile,PrintStatusLine
288288
USE MOD_Output_Vars, ONLY: ProjectName
289289
USE MOD_TimeDisc_Vars, ONLY: dt,tStart,tEnd,maxIter
290+
USE MOD_Restart_Vars, ONLY: RestartTime
290291
! IMPLICIT VARIABLE HANDLING
291292
IMPLICIT NONE
292293
!----------------------------------------------------------------------------------------------------------------------------------
@@ -323,7 +324,7 @@ SUBROUTINE Analyze(Time,iter)
323324
CALL AnalyzePerformance()
324325
CALL Benchmarking()
325326

326-
IF(Time.GT.0.) THEN
327+
IF(Time.GT.RestartTime) THEN
327328
SWRITE(UNIT_stdOut,'(132("-"))')
328329
CALL PrintStatusLine(time,dt,tStart,tEnd,iter,maxIter,doETA=.TRUE.)
329330
SWRITE(UNIT_stdOut,'(132("."))')

0 commit comments

Comments
 (0)