Newer
Older
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
!-----------------------------------------------------------------------
!
!
SUBROUTINE wr_native(n)
!
!
!-----------------------------------------------------------------------
!
!
! Subroutine to output information about the system state to
! the log and body data files.
!
!
!-----------------------------------------------------------------------
USE fly_h
implicit none
! Declaration of local variables.
! -------------------------------
INTEGER(KIND=8) ::n
INTEGER :: fo,na1
!-----------------------------------------------------------------------
IF(me.eq.0) THEN
WRITE(uterm,*)'Computed DTIME: ',dtime
WRITE(uterm,*)'Step completed: ',n
call flush(uterm)
ENDIF
na1=n
if(chk_file.lt.0) chk_file=1000000
fo=MOD(na1,chk_file)
IF(n.eq.nsteps .or. fo.eq.0 .or. halt_sim.gt.0) THEN
IF(inasc.eq.'A') THEN
IF(me.eq.0) THEN
write(uterm,*)'ASCII DATA OUTPUT'
call flush(uterm)
ENDIF
CALL write_b_asc
ENDIF
IF(inasc.eq.'B') THEN
IF(me.eq.0) THEN
write(uterm,*)'BINARY DATA OUTPUT'
call flush(uterm)
ENDIF
CALL write_b_bin
ENDIF
ENDIF
RETURN
END