COMMIT FOR PYTHON 68b

Precursor - py68

-----------------------------

Changes

- Logging - introduced what amounts to a verbosity parameter to allow the user to control what level of verbosity, s/he wants.  The verbosity is controlled by a new switch -v which takes a number.  -v 1 is low verbosity -v 9 is high.  The default level of verbosity currently suppresses recording of Log_silent and Error_silent.  This version of python requires a new version of kpar (in order to allow us to see what is produced in this mode. kpar contains a new routine Log_verbosity to set the verbosity level.  One can use this within routines to change the amount of information printed out for the specific regions of the program one wants to debug.  A routine Shout was also added to kpar which allows one to force a print out.

- Added tracking of what ions scatter and what ions absorb during the creation of the detailed spectrum.  The idea behind this was to give one a way to see what portions of the wind are important to create a line. This was done by adding two new arrrays to Plasma, one which can capture the number of scatters made by each ion, the other which trackts the energy scattered out of the line of sight to the observer for the "middle" inclination angle by ion and location in the wind.  The idea is that you should be able to see where along the line of sight one each ion is scattering.  Most of the modifications for this are in extract.c (and in phot_util.c). Note - this needs more testing

- Py_wind - I added the possibility of running py_wind from the command line.  The principle reason for this was that I wanted to be able to run py_wind from scripts.  The usage statement now reads py_wind [-h] [-s] [rootname].  -h gives a short message and then quits. -s causes the "standard" output files to be produced after which the routine quites. Providing the rootname simply avoids being asked for it.  If py_wind is invoked without any thing else, it still performs in the standard way.

-----------------------------

Fixes

- pdf.c - I increased the size of input arrays that pdf_gen_from_array could handle from 4000 to 10000 because an error popped up when I tried using my newer disk in disk06 models over the full range.  I also improved the Error reporting for this.  Note that increasing this number does not increase the basic resolution of the pdf used by python.

- Changed names of the routines that are specific to py wind so they all start with py_wind  (py_ion.c --> py_wind_ion.c,  py_write.c --> py_wind_write.c) so they are more easily identifiable. Changed Makefile to allow for this
Moved wind creation down in python.c so it was not right in the middle of where one is typing in inputs.  There is a lot of time currently speant calculating which elements are in the wind.  It's unclear this is needed, but it is even more clear that it annoying to have to wait 3 or 4 minutes to type in the rest of the inputs.

- Move reading of non-standard disk models into its own routine at the botton of python.c.  The goal is that the main routine should be as clean as possible. It's nasty enough with all of the reading of inputs.

-----------------------------