-
Notifications
You must be signed in to change notification settings - Fork 2
/
ranprint.f
43 lines (33 loc) · 1.11 KB
/
ranprint.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
subroutine ran_print(n, m, sn, result, vr_reg, iuser)
implicit none
include 'pusr.inc'
include 'SLPCOMM.INC'
integer n, m, sn
double precision result(7, n+m)
integer vr_reg(2+2*sn+3*n), iuser(*)
integer i, tp, j, k, l, pi
c ==================== subroutine body =======================
write(nout,*)
write(nout,*)
write(nout,*) ' ============= RANGING ================='
write(nout,*)
write(nout,*)
write(nout,*) ' Information for variables:'
write(nout,*) 'I TP J K RANGING INFORMATION '
do i=1,n
tp = vr_reg(2+2*sn+i)
j = vr_reg(2+2*sn+n+i)
k = vr_reg(2+2*sn+2*n+i)
write(nout,'(I3,3I2,7G10.2)') i, tp, j, k, (result(l,i), l=1,7)
end do
write(nout,*) ' Information for constraints'
write(nout,*) 'I TP J K RANGING INFORMATION '
do i=1,m
pi = iuser(pi_cs_pi+i)
tp = iuser(pi+6)
j = iuser(pi+7)
k = iuser(pi+8)
write(nout,'(I3,3I2,7G10.2)') i, tp, j, k,
& (result(l,n+i), l=1,7)
end do
end