51 |
character*(max_len_mbuf) msgbuf |
character*(max_len_mbuf) msgbuf |
52 |
_RL npart_dist |
_RL npart_dist |
53 |
Real*8 PORT_RAND |
Real*8 PORT_RAND |
54 |
|
#undef _USE_INTEGERS |
55 |
|
#ifdef _USE_INTEGERS |
56 |
|
integer seed |
57 |
|
#else |
58 |
|
Real*8 seed |
59 |
|
#endif |
60 |
|
|
61 |
c == end of interface == |
c == end of interface == |
62 |
|
|
113 |
#endif |
#endif |
114 |
|
|
115 |
if (iup(ip,bi,bj).ne.-2.) then |
if (iup(ip,bi,bj).ne.-2.) then |
116 |
uu = uu + uu*(PORT_RAND()-0.5)*flt_noise |
uu = uu + uu*(PORT_RAND(seed)-0.5)*flt_noise |
117 |
vv = vv + vv*(PORT_RAND()-0.5)*flt_noise |
vv = vv + vv*(PORT_RAND(seed)-0.5)*flt_noise |
118 |
endif |
endif |
119 |
|
|
120 |
c xx and xt are in indices. Therefore it is necessary to multiply |
c xx and xt are in indices. Therefore it is necessary to multiply |
141 |
#endif |
#endif |
142 |
|
|
143 |
if (iup(ip,bi,bj).ne.-2.) then |
if (iup(ip,bi,bj).ne.-2.) then |
144 |
u1 = u1 + u1*(PORT_RAND()-0.5)*flt_noise |
u1 = u1 + u1*(PORT_RAND(seed)-0.5)*flt_noise |
145 |
v1 = v1 + v1*(PORT_RAND()-0.5)*flt_noise |
v1 = v1 + v1*(PORT_RAND(seed)-0.5)*flt_noise |
146 |
endif |
endif |
147 |
|
|
148 |
c xpart is in coordinates. Therefore it is necessary to multiply |
c xpart is in coordinates. Therefore it is necessary to multiply |