AIRES library reference: pclenamefromcode.


c
c     Routine directly callable from C/C++ (it could be necessary to
c     append an underscore, "_", to its name depending on the C/C++
c     compiler used).
c
c
      subroutine pclenamefromcode(pcode, pname, lpname)
c
c     Obtaining the name of a particle given its AIRES code.
c
c     Written by: S. J. Sciutto, La Plata 2019.
c
c
c     Arguments:
c     =========
c
c     pcode........... (input, integer) AIRES particle code.
c     pname........... (output, character*(*)) The particle name that
c                      corresponds to the specified code. If pcode
c                      lies within the range of valid particle codes
c                      but does not correspond to a particle, then
c                      pname is set to 'NOT_USED'. If the input
c                      particle code is out of range, then pname is
c                      set to 'INVALID CODE'. Maximum lenght is 12
c                      characters.
c     lpname.......... (output, integer) Length of pname string.
c
c
c<--->


These pages are maintained by
Sergio J. Sciutto
Back to AIRES library index
Back to AIRES home [HOME]