next up previous contents
Next: Common Block Variables Up: Common Block Variables and Previous: Common Block Parameters in   Contents

Other Code Parameters

Other parameters are scattered around the code. They are:
TINY, UTINY, RHOTINY:
These are used in subroutines TSTEP, ADVANCE, and RHOS, respectively, all of which are in advance.f to avoid dividing by zero.
NGRIDX, XMIN, XMAX, NGRIDZ, ZMIN, ZMAX:
These are used in densplot.f to define the memory size and physical size of the grid used for writing the density values.
MAXRHO:
This is the maximum density used to scale the density values in densplot.f.
NAMX:
This is used by subroutines QGRAV, QGRAV2, and QGRAVRAD to estimate the amount of mass contained within a given range of values for grid settings which only include a certain percentage of the mass.
TGR:
This is used by subroutines QGRAV, QGRAV2, and QGRAVRAD when you choose NGR=21. After time TGR has passed, the run will switch from NGR=2 to NGR=1. See Sec. 3.3.2 for more info.
NCMX, NCMY, NCMZ:
These define the memory size of the grid used to calculate the neighbor lists in subroutine NENE in nelist.f.
NITCH:
This defines the number or iterations between writing data to the file restart.sph in subroutine CHKPT in output.f.
TINY:
In subroutine ENOUT in output.f, this is used to avoid dividing by zero.
XMAX, MAXSTP, PI, NRM, NMAX:
These are used in poly.f to define parameters for the Runge-Kutta routine which solves for the polytropic density profile. Edit them at your own risk!
IA, IM, AM, IQ, IR, NTAB, NDIV, EPS, RNMX:
These are used in ran1.f the random number generator. Leave them alone.
MAXTRY, NRGRID:
These are used in the initialization routines to avoid infinite loops. They should never affect the code at all. If they come into play, there are bigger problems afoot.


next up previous contents
Next: Common Block Variables Up: Common Block Variables and Previous: Common Block Parameters in   Contents
Joshua Faber 2003-06-28