Go to the source code of this file.
◆ __smashskelsmallfileno.f__()
program __smashskelsmallfileno.f__ |
( |
| ) |
|
Definition at line 42 of file smashSkelSmallFileNo.f.
References cerrormsg(), copenf(), copenfw2(), cpupw(), distribute(), i, issuemsg(), kgetenv2(), klena(), ksplit(), maxp, memoforcpu(), movetrack(), n, sortbyerg(), and true.
◆ distribute()
Definition at line 207 of file smashSkelSmallFileNo.f.
References cerrormsg(), cpupw(), erg, idx(), idxlocal(), kqsortd(), ksortinv(), sumergi(), and sumergw().
209 include
"../../SkelFlesh/Zprivate.h" 210 include
"Zprivate2.h" 224 idxlist(1,
i) =
idx(
i)
279 noncpu( k ) = noncpu( k ) + 1
280 if( noncpu( k ) .gt. maxptclpercpu )
then 282 *
'# of ptcls on a cpu', k,
' exceeded limit=',
285 call cerrormsg(
'Enlarge MaxPtclPerCpu in Zprivate2.h',0)
287 idxlist( noncpu(k), k ) =
idx(
j)
subroutine cerrormsg(msg, needrtn)
averg real * sumergi(MaxCPU)
averg real MaxCPU integer idx(Maxp)
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
subroutine kqsortd(A, ORD, N)
subroutine ksortinv(idx, n)
averg real sumergw(MaxCPU)
averg real MaxCPU integer idxlocal(MaxCPU) integer numba(MaxCPU) integer ctc
averg real cpupw(MaxCPU) integer nOnCpu(MaxCPU) integer idxlist(MaxPtclPerCpu
◆ issuemsg()
Definition at line 342 of file smashSkelSmallFileNo.f.
References cerrormsg(), cpupw(), and sumergi().
344 include
"../../SkelFlesh/Zprivate.h" 345 include
"Zprivate2.h" 350 msg =
' cpu# cpuPW Sum E # of ptcls' 354 write(msg,
'(i4, f7.1, g16.7, i9)')
subroutine cerrormsg(msg, needrtn)
averg real * sumergi(MaxCPU)
averg real cpupw(MaxCPU) integer nOnCpu(MaxCPU) integer idxlist(MaxPtclPerCpu
◆ memoforcpu()
Definition at line 295 of file smashSkelSmallFileNo.f.
297 include
"../../SkelFlesh/Zprivate.h" 298 include
"Zprivate2.h" 301 integer navob, navobc
311 navob = max(np/ncpu, 1)
312 if( np .eq. 0 ) navob = 0
315 if(navobc+navob .gt. np .or.
i .eq.
n )
then 318 write(basefn+
i) navob
319 do j = navobc +1, navobc+navob
321 write(basefn+
i) oo(
j)
323 navobc = navobc + navob
335 write(basefn+
i) noncpu(
i)
337 write(basefn+
i) ct( idxlist(
j,
i) )
********************block data cblkHeavy ********************integer j data *HeavyG2symbol *data *HeavyG2code kiron data j
◆ movetrack()
subroutine movetrack |
( |
type(child) |
f, |
|
|
type(track) |
t |
|
) |
| |
Definition at line 399 of file smashSkelSmallFileNo.f.
References asflag, charge, code, colheight, cresetdirec(), depth, height, mass, p, r, radiallen, subcode, sys, wgt, and xyz.
402 include
"../../SkelFlesh/Zprivate.h" 403 include
"Zprivate2.h" 411 t.
p.fm.
p(1) =
f.fm(1)
412 t.
p.fm.
p(2) =
f.fm(2)
413 t.
p.fm.
p(3) =
f.fm(3)
414 t.
p.fm.
p(4) =
f.fm(4)
416 t.pos.
xyz.
r(1) = pp.posx
417 t.pos.
xyz.
r(2) = pp.posy
418 t.pos.
xyz.
r(3) = pp.posz
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos depth
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos *Zfirst pos colheight
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz r
latitude latitude this system is used *****************************************************************! type coord sequence union map real z z in m endmap xyz map real ! latitude in deg is to the north ! longitude in deg is to the east *h ! height in m endmap llh map real ! polar angle ! azimuthal angle *radius ! radial distance endmap sph endunion character *sys ! which system xyz
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz sys
subroutine cresetdirec(aTrack)
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos *Zfirst pos *Zfirst Zfirst vec w *Zfirst vec w Zfirst vec *Zfirst Zfirst Zfirst asflag
*Zfirst p fm *Zfirst p Zfirst p code
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos height
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p charge
*Zfirst p fm *Zfirst p mass
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos *Zfirst pos Zfirst pos *Zfirst pos *Zfirst Zfirst vec w *Zfirst vec w Zfirst vec *Zfirst wgt
*Zfirst p fm *Zfirst p Zfirst p Zfirst p subcode
dE dx *! Nuc Int sampling table f
*Zfirst p fm *Zfirst p Zfirst p Zfirst p *Zfirst p *Zfirst pos xyz Zfirst pos xyz *Zfirst pos radiallen
◆ sortbyerg()
Definition at line 364 of file smashSkelSmallFileNo.f.
References cerrormsg(), erg, idx(), kqsortd(), ksortinv(), and p.
366 include
"../../SkelFlesh/Zprivate.h" 367 include
"Zprivate2.h" 374 averg = averg +
erg(
i)
381 averg = averg/ctc * ncpu
386 if(
erg(
idx(ctc) ) .gt. averg*1.1 )
then 389 write(msg,*)
'WARGNING: max E=',
erg(
idx(
i)),
390 *
' is > average total energy for 1 cpu=',
subroutine cerrormsg(msg, needrtn)
averg real MaxCPU integer idx(Maxp)
********************block data cblkHeavy ********************integer j data *HeavyG2symbol p
subroutine kqsortd(A, ORD, N)
subroutine ksortinv(idx, n)