#include "implicit_f.inc"
#include "sphcom.inc"
Go to the source code of this file.
|
| subroutine | dxyzsph (nesph, kxsp, x, spbuf, snnsphg, nnsph) |
◆ dxyzsph()
| subroutine dxyzsph |
( |
integer | nesph, |
|
|
integer, dimension(nisp,*) | kxsp, |
|
|
| x, |
|
|
| spbuf, |
|
|
integer | snnsphg, |
|
|
integer | nnsph ) |
Definition at line 29 of file dxyzsph.F.
30
31
32
33#include "implicit_f.inc"
34
35
36
37#include "sphcom.inc"
38
39
40
41 INTEGER NESPH, KXSP(NISP,*),SNNSPHG,NNSPH
43 . x(3,*),spbuf(nspbuf,*)
44
45
46
47 INTEGER , J, INOD, CNT
49 3 xi,yi,zi,r,
50 4 xq(3),fact
51 REAL R4(3*NNSPH)
52
53 IF (numsph+maxpjet==0) GOTO 100
54
55 cnt = 0
56 fact =(three/(four*sqrt(two)))**third
57 DO 200 n=1,numsph+maxpjet
58 inod=kxsp(3,n)
59 xi =x(1,inod)
60 yi =x(2,inod)
61 zi =x(3,inod)
62 r = spbuf(1,n)*fact
63 xq(1) =xi+r
64 xq(2) =yi-r
65 xq(3) =zi-r
66 DO j=1,3
67 r4 = xq(j)
69 ENDDO
70 xq(1) =xi-r
71 xq(2) =yi+r
72 xq(3) =zi-r
73 DO j=1,3
74 r4 = xq(j)
76 ENDDO
77 xq(1) =xi-r
78 xq(2) =yi-r
79 xq(3) =zi+r
80 DO j=1,3
81 r4 = xq(j)
83 ENDDO
84 xq(1) =xi+r
85 xq(2) =yi+r
86 xq(3) =zi+r
87 DO j=1,3
88 r4 = xq(j)
90 ENDDO
91 200 CONTINUE
92 100 CONTINUE
93
94 RETURN
void write_r_c(float *w, int *len)