-
Notifications
You must be signed in to change notification settings - Fork 2
/
SEM_main.f90
37 lines (31 loc) · 1.51 KB
/
SEM_main.f90
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
!------------------------------------------------------------------------------!
! !
! PROGRAM : SEM_main.f90 !
! !
! PURPOSE : To make inflow generation by using SEM (Synthetic Eddy Method) !
! !
! 2017.03.02 K.Noh !
! !
!------------------------------------------------------------------------------!
PROGRAM SEM_main
USE SEM_module, &
ONLY : Nt, time, dt, OUT_NUM
IMPLICIT NONE
INTEGER :: it
REAL(KIND=8) :: time_sta, time_end
CALL SETUP
CALL READ_DATA
CALL EDDY_SETTING
DO it = 1,Nt
time = it * dt
CALL CPU_TIME(time_sta)
CALL FLUCT_GEN
CALL COMB_SLICE
CALL CONVECT_EDDY
CALL SEM_STAT
CALL CPU_TIME(time_end)
WRITE(*,"(A,1X,I5,2X,A,F10.6,A)") &
'SEM for',it,'iteration time : ',time_end - time_sta,' s'
IF( mod(it,OUT_NUM) == 0 ) CALL OUTPUT
END DO
END PROGRAM SEM_main