agnwinds/python — pull request #120 by jhmatthews (2014-10-07 15:18:11+00:00)
Title: Implementing advanced mode with -d flag to access

As decided in telecon and discussed in #111 we want an advance dusers mode which one accesses with -d. Using -d turns modes.iadvanced to 1.

Currently this asks for a few options which are not asked for if you don't run with -d. These are:

```
adjust_grid(0=no,1=yes) # near start after grid dimensions
Use_Debug_Statements(0=no, 1=yes) # near end
Extra.diagnostics(0=no,1=yes) # very end
```

The variables for turning on modes are all in a global modes structure.

**adjust_grid**

allows one to turn adjust the scale lengths of the grid, asks for one or two options depending on type of grid used:

```
geo.xlog_scale
geo.zlog_scale
```

**Use_Debug_Statements** - simply turns on or off whether the Debug command does anything.

**Extra.diagnostics(0=no,1=yes)** - turns on extra diagnostics, and then looks for any of these options. Can give as many or as few as you want:

```
keep_ioncycle_windsaves
track_resonant_scatters
ispymode
save_cell_statistics
print_windrad_summary
```

more can be added here. One just has to add a variable to the modes structure and adjust the function get_extra_diagnostics().

This still needs some more commenting and more robust error messages.