-
Notifications
You must be signed in to change notification settings - Fork 0
/
Main.f95
72 lines (41 loc) · 1 KB
/
Main.f95
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
PROGRAM MAIN
USE GLOBAL
IMPLICIT NONE
PC=0.0
U=0.0
V=0.0
T=0.0
P=0.0
CSUM=1.0
USUM=1.0
VSUM=1.0
TSUM=1.0
OUTCOUNTER=0
CALL DEFINE
CALL GRIDSETUP
CALL START
CALL CPU_TIME(ALLBEGIN)
! DO WHILE ( USUM>TOL.OR.ABS(CSUM)>TOL.OR.VSUM>TOL.OR.TSUM>1E-9 )
! DO WHILE ( TSUM>1E-10)
DO WHILE(OUTCOUNTER<1)
!CALL CPU_TIME(TIMEBEGIN)
CALL UPDATEPRESSURE
CALL DENSE
CALL BOUND
CALL XVELOCITY
CALL YVELOCITY
!CALL MIM
CALL PRESSURE
CALL OTHERPHI
!CALL CPU_TIME(TIMEEND)
OUTCOUNTER=OUTCOUNTER+1
IF(MOD(OUTCOUNTER,1)==0)THEN
WRITE(*,"('U:',E15.6,5X,'V:',E15.6,5X,'CSUM:',E15.6,5X,'TSUM:',E15.6,5X,I5,8X,&
&'MONITOR:',F14.10,1X,F14.10,1X,F14.10,1X,F14.10)")&
&USUM,VSUM,CSUM,TSUM,OUTCOUNTER
ENDIF
ENDDO
CALL CPU_TIME(ALLEND)
CALL OUTPUT
WRITE(*,*)" THE PROCEDURE HAS COST YOU",ALLEND-ALLBEGIN,"TIME"
END