Skip to content

Commit

Permalink
fix variable overloading issue on matlab
Browse files Browse the repository at this point in the history
  • Loading branch information
fangq committed Jan 10, 2022
1 parent 1453fbe commit 22ae997
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions script/blendermmc.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,16 +51,14 @@ function blendermmc(paramfile, meshfile)

%% run the simulation

%cfg=mmclab(cfg,'prep');

flux=mmclab(cfg);

%% Post-processing simulation result

fluxlog1 = log10(abs(flux.data(1:size(cfg.node,1))));
min = unique(fluxlog1);
fluxmin = unique(fluxlog1);
fluxlog=fluxlog1;
fluxlog(isinf(fluxlog1)) = min(2);
fluxlog(isinf(fluxlog1)) = fluxmin(2);


savejson('',struct('logflux',fluxlog(:)'),'FileName',bpmwpath('mmcoutput.json'),'ArrayIndent',0);
Expand Down

0 comments on commit 22ae997

Please sign in to comment.