%
% execute C++ code
%

% !reflected

%
% use MATLAB routine to plot output
%

addpath('..');

nvert = 3;

for option = 1:3
  filename = ['reflected_' num2str(option)];
  mlmc_plot(filename,nvert);

  if (nvert==1)
    figure(1)
    print('-deps2c',[filename '_a.eps'])
    figure(2)
    print('-deps2c',[filename '_b.eps'])
  else
    print('-deps2c',[filename '.eps'])
  end

  % filename = ['reflected1_' num2str(option) '_100'];
  % mlmc_plot_100(filename);
  % print('-deps2c',[filename '.eps'])
end
