‘—AO_sim_loadData’ seems to be working correctly now. It has only been tested with sensor.mask = ones(Nx, Ny, Nz).
The issue previously was an incorrect naming of the displacement sensors (i.e. disp_x_… was being used everywhere).
This has been fixed.

To do:
- Test with reduced sensor.mask
Found another section with displacement sensors used in multiple places. The problem was this simple mistake,
float * dmap_x = disp_x_full_medium->GetRawData();
float * dmap_y = disp_x_full_medium->GetRawData();
float * dmap_z = disp_x_full_medium->GetRawData();

Copy and paste, late at night, can be evil.

To do:
- Test with reduced sensor.mask size
Latest changes with some cleanups and removal of extraneous code.
What has been found is that '--AO_sim' and '--AO_sim_loadData' produce
the same results when the sensor.mask = ones(Nx, Ny, Nx). More specifically
the sensor mask needs to be the same size as the entire medium, otherwise
strange behavior occurs with the '--AO_sim' option.

To do:
- Figure why making the sensor.mask smaller than the entire medium produces
  results that don't match.