This routine first constructs a polytropic fit to the density profile
of the star, with the following parameters supplied in sph.input: Stellar mass ``AMNS'', stellar radius ``RNS'',
and adiabatic index
``GAM''.
It then will lay down a number of particles similar to the number you
set by the
parameter ``N'' in sph.input, in a hexagonal-close packed
lattice. Since it is only feasible to estimate the proper lattice
spacing, we have set the code to create a number of particles slightly
smaller than the requested number, to ensure no memory overflows will occur.
Typically, the
configurations which result will be somewhat unrelaxed, with small
density perturbations. To relax the model, we recommend setting
``NRELAX''=1 and ``TRELAX''
in sph.input, with the time until relaxation
finishes, ``TRELOFF'', set to a much larger value.