Skip to content

Commit

Permalink
lowering default photon number so it can be launched on most gpus
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Feb 3, 2022
1 parent 220d9c2 commit 23bf5b2
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions mcxlab/examples/demo_polarized_photon.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% MCXLAB - Monte Carlo eXtreme for MATLAB/Octave by Qianqina Fang
%
% In this example, we model propagation of polarized light inside a
% In this example, we model propagation of polarized light inside a
% heterogeneous media.
%
% This file is part of Monte Carlo eXtreme (MCX) URL:http://mcx.sf.net
Expand Down Expand Up @@ -30,7 +30,7 @@
cfg.polprop=[
0.005, 0.05, 19.1142, 1.59, 1.33; % label 1
0.005, 1.0, 1.11078e-3, 1.59, 1.33; % label 2
];
];

% optical properties
cfg.prop=[
Expand Down Expand Up @@ -66,16 +66,16 @@
% disable boundary reflection/refraction
cfg.isreflect=0;

% For each detected photon, save stokes parameter[i], exit position[x] and
% For each detected photon, save stokes parameter[i], exit position[x] and
% direction[v] and initial photon energy[w]
cfg.savedetflag='ixvw';

% cyclic boundary condition to mimic horizontally infinite slabs
cfg.bc='cc_cc_001000';

% photon number
cfg.nphoton=1e8;
cfg.maxdetphoton=1e8; % max number of detected photons
cfg.nphoton=1e7;
cfg.maxdetphoton=1e7; % max number of detected photons

%% run simulation and plot results
[~,detphoton]=mcxlab(cfg);
Expand Down Expand Up @@ -107,4 +107,4 @@
axis equal;
title(arr(1,i));
colorbar;
end
end

0 comments on commit 23bf5b2

Please sign in to comment.