Skip to content
Snippets Groups Projects
Commit 900a61c8 authored by Antoine Cyril David Hoffmann's avatar Antoine Cyril David Hoffmann :seedling:
Browse files

solve nan heatflux and provide last value of heat flux at the end of the run

parent fe27490c
No related branches found
No related tags found
No related merge requests found
...@@ -13,20 +13,21 @@ SUBROUTINE diagnose(kstep) ...@@ -13,20 +13,21 @@ SUBROUTINE diagnose(kstep)
INQUIRE(unit=lu_in, name=input_fname) INQUIRE(unit=lu_in, name=input_fname)
CLOSE(lu_in) CLOSE(lu_in)
ENDIF ENDIF
IF (kstep .GE. 0) THEN !! End diag
! Terminal info IF (kstep .EQ. -1) THEN
IF (MOD(cstep, INT(1.0/dt)) == 0 .AND. (my_id .EQ. 0)) THEN
! WRITE(*,"(F6.0,A,F6.0)") time,"/",tmax
WRITE(*,"(A,F6.0,A1,F6.0,A8,G10.2,A8,G10.2,A)")'|t/tmax = ', time,"/",tmax,'| Gxi = ',gflux_ri,'| Qxi = ',hflux_xi,'|'
ENDIF
ELSEIF (kstep .EQ. -1) THEN
CALL cpu_time(finish) CALL cpu_time(finish)
! Display computational time cost ! Display computational time cost
IF (my_id .EQ. 0) CALL display_h_min_s(finish-start) IF (my_id .EQ. 0) CALL display_h_min_s(finish-start)
! Show last state transport values
IF (my_id .EQ. 0) &
WRITE(*,"(A,G10.2,A8,G10.2,A)") 'Final transport values : | Gxi = ',gflux_ri,'| Qxi = ',hflux_xi,'|'
END IF END IF
!! Specific diagnostic calls !! Specific diagnostic calls
CALL diagnose_full(kstep) CALL diagnose_full(kstep)
! Terminal info
IF ((kstep .GT. 0) .AND. (MOD(cstep, INT(1.0/dt)) == 0) .AND. (my_id .EQ. 0)) THEN
WRITE(*,"(A,F6.0,A1,F6.0,A8,G10.2,A8,G10.2,A)")'|t/tmax = ', time,"/",tmax,'| Gxi = ',gflux_ri,'| Qxi = ',hflux_xi,'|'
ENDIF
CALL cpu_time(t1_diag); tc_diag = tc_diag + (t1_diag - t0_diag) CALL cpu_time(t1_diag); tc_diag = tc_diag + (t1_diag - t0_diag)
END SUBROUTINE diagnose END SUBROUTINE diagnose
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment