Go to the source code of this file.
◆ __smashskel.f__()
program __smashskel.f__ |
( |
| ) |
|
Definition at line 45 of file smashSkel.f.
References cerrormsg(), copenf(), copenfw2(), cpupw(), distribute(), i, issuemsg(), kgetenv2(), klena(), ksplit(), maxp, memoforcpu(), movetrack(), n, sortbyerg(), and true.
◆ distribute()
Definition at line 315 of file smashSkel.f.
References cerrormsg(), cpupw(), erg, idx(), idxlocal(), kqsortd(), ksortinv(), sumergi(), and sumergw().
Referenced by __smashskel.f__(), __smashskelsmallfileno.f__(), and __smashskeltrial.f__().
317 include
"../../SkelFlesh/Zprivate.h" 318 include
"Zprivate2.h" 332 idxlist(1,
i) =
idx(
i)
387 noncpu( k ) = noncpu( k ) + 1
388 if( noncpu( k ) .gt. maxptclpercpu )
then 390 *
'# of ptcls on a cpu', k,
' exceeded limit=',
393 call cerrormsg(
'Enlarge MaxPtclPerCpu in Zprivate2.h',0)
395 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()
◆ memoforcpu()
Definition at line 403 of file smashSkel.f.
References rndc().
Referenced by __smashskel.f__(), __smashskelsmallfileno.f__(), and __smashskeltrial.f__().
405 include
"../../SkelFlesh/Zprivate.h" 406 include
"Zprivate2.h" 409 integer navob, navobc, navobx
434 write(0,*)
' navobx=', navobx,
' resob=',resob
438 if(numba(
i) .lt. 0 )
then 442 if( u .lt. resob)
then 445 if(navobc+navob .gt. np .or. cpuc .eq. mcpu )
then 448 #if defined (AVOIDFOOL) 449 open(basefn+
i, file=skelfile(
i),
position=
"append",
451 open(basefn+
i, file=skelfile(
i), access=
"append",
453 * form=
"unformatted", iostat=icon)
456 write(0,*)
' cpu ',
i,
' cpuc=',cpuc,
' obs=',navob
458 write(basefn+
i) navob
461 do j = navobc +1, navobc+navob
462 write(basefn+
i) oo(
j)
464 navobc = navobc + navob
466 write(0,*)
' skelfile=', skelfile(
i),
" cannot be opened" 482 write(0,*)
' i=',
i,
' nOnCpu(i)=',noncpu(
i)
487 write(basefn+
i) noncpu(
i)
489 #if defined (AVOIDFOOL) 490 zfirst = ct( idxlist(
j,
i) )
492 #include "ZavoidUnionMap.h" 494 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 560 of file smashSkel.f.
References asflag, charge, code, colheight, cresetdirec(), depth, height, mass, p, r, radiallen, subcode, sys, wgt, and xyz.
Referenced by __smashskel.f__(), __smashskelsmallfileno.f__(), and __smashskeltrial.f__().
563 include
"../../SkelFlesh/Zprivate.h" 564 include
"Zprivate2.h" 572 t.
p.fm.
p(1) =
f.fm(1)
573 t.
p.fm.
p(2) =
f.fm(2)
574 t.
p.fm.
p(3) =
f.fm(3)
575 t.
p.fm.
p(4) =
f.fm(4)
577 t.pos.
xyz.
r(1) = pp.posx
578 t.pos.
xyz.
r(2) = pp.posy
579 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 525 of file smashSkel.f.
References cerrormsg(), erg, idx(), kqsortd(), ksortinv(), and p.
Referenced by __smashskel.f__(), __smashskelsmallfileno.f__(), and __smashskeltrial.f__().
527 include
"../../SkelFlesh/Zprivate.h" 528 include
"Zprivate2.h" 535 averg = averg +
erg(
i)
542 averg = averg/ctc * ncpu
547 if(
erg(
idx(ctc) ) .gt. averg*1.1 )
then 550 write(msg,*)
'WARGNING: max E=',
erg(
idx(
i)),
551 *
' 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)