Skip to content

Commit

Permalink
[bug] fix mcxlab castlist
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Dec 11, 2024
1 parent 86dcba9 commit 22bf12a
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions mcxlab/mcxlab.m
Original file line number Diff line number Diff line change
Expand Up @@ -449,11 +449,11 @@

if (isstruct(varargin{1}))
for i = 1:length(varargin{1})
castlist = {'srcpattern', 'srcpos', 'detpos', 'prop', 'workload', 'srcdir', 'srciquv', 'isnormalized'
'isreflect', 'nphoton', 'nblocksize', 'nthread', 'tstart', 'tend', 'maxdetphoton', 'maxgate'
'respin', 'isref3', 'isrefint', 'isgpuinfo', 'issrcfrom0', 'autopilot', 'minenergy', 'unitinmm'
'voidtime', 'issavedet', 'issaveseed', 'issaveref', 'issaveexit', 'ismomentum', 'isspecular'
'replaydet', 'maxvoidstep', 'maxjumpdebug', 'gscatter', 'srcnum', 'srcid', 'omega', 'issave2pt'
castlist = {'srcpattern', 'srcpos', 'detpos', 'prop', 'workload', 'srcdir', 'srciquv', 'isnormalized', ...
'isreflect', 'nphoton', 'nblocksize', 'nthread', 'tstart', 'tend', 'maxdetphoton', 'maxgate', ...
'respin', 'isref3', 'isrefint', 'isgpuinfo', 'issrcfrom0', 'autopilot', 'minenergy', 'unitinmm', ...
'voidtime', 'issavedet', 'issaveseed', 'issaveref', 'issaveexit', 'ismomentum', 'isspecular', ...
'replaydet', 'maxvoidstep', 'maxjumpdebug', 'gscatter', 'srcnum', 'srcid', 'omega', 'issave2pt', ...
'lamda', 'steps', 'crop0', 'crop1'};
for j = 1:length(castlist)
if (isfield(varargin{1}(i), castlist{j}))
Expand Down

0 comments on commit 22bf12a

Please sign in to comment.