-
Notifications
You must be signed in to change notification settings - Fork 0
/
machine.F
executable file
·76 lines (76 loc) · 1.51 KB
/
machine.F
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
73
74
75
76
c
c --- machine-specific Fortran routines
c
subroutine machine()
c
c --- always called once at the start of the program.
c
#if defined(SGI)
call zunder() ! C-wrapper to flush underflow to zero on R10000
#endif
end
#if defined(AIX)
subroutine flush(iunit)
implicit none
integer iunit
c
c --- wrapper for flush system call under AIX.
c
integer*4 iunit4
c
iunit4=iunit
call flush_(iunit4)
return
end
#endif /* AIX */
#if defined(X1)
subroutine x1flush(iunit)
implicit none
integer iunit
c
c --- wrapper for flush system call on the Cray X1.
c
integer ierr
c
call FLUSH(iunit,ierr)
return
end
#endif /* X1 */
#if defined(IFC)
subroutine flush(iunit)
implicit none
integer iunit
c
c --- disable the flush system call under Intel's IFC compiler.
c
return
end
#endif /* IFC */
#if defined(SUN)
subroutine ieee_retrospective()
c
c dummy routine to turn off ieee warning messages on a Sun.
c
end
#endif /* SUN */
#if defined(T3E) || defined(YMP) || defined(X1)
subroutine getenv(cname, cvalue)
implicit none
c
character*(*) cname,cvalue
c
c this subroutine provides getenv functionality
c on the t3e, using pxfgetenv.
c
integer iname,ivalue,ierr
c
iname = 0
ierr = 0
call pxfgetenv(cname,iname, cvalue,ivalue, ierr)
if (ierr.ne.0) then
cvalue = ' '
endif
return
c end of getenv.
end
#endif /* T3E || YMP || X1 */