Skip to content

Commit

Permalink
Merge branch 'master' into lm-190323-release-candidate
Browse files Browse the repository at this point in the history
  • Loading branch information
Lisa Malenfant committed Apr 2, 2019
2 parents 4bd7cf6 + 2481087 commit af53da8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
end

if isfield(results{di}, 'ROfFx') && show.ROfFx
figname = sprintf('log(%s)',results{di}.ROfFx.Name); figure; plot(results{di}.ROfFx.Fx_Midpoints, abs(results{di}.ROfFx.Mean)); title(figname); set(gcf,'Name', figname);
figname = sprintf('%s',results{di}.ROfFx.Name); figure; plot(results{di}.ROfFx.Fx_Midpoints, abs(results{di}.ROfFx.Mean)); title(figname); set(gcf,'Name', figname);
xlabel('f_x [/mm]'); ylabel('R(f_x) [unitless]');
disp(['Total reflectance captured by ROfFx detector: ' num2str(results{di}.ROfFx.Amplitude(1))]);
end
Expand Down
9 changes: 8 additions & 1 deletion src/Vts/Modeling/ForwardSolvers/TwoLayerSDAForwardSolver.cs
Original file line number Diff line number Diff line change
Expand Up @@ -281,11 +281,14 @@ public override IEnumerable<double> FluenceOfRhoAndZ(
IEnumerable<double> rhos,
IEnumerable<double> zs)
{

foreach (var region in regions)
{
var dp = GetDiffusionParameters(region);
var layerThicknesses = GetLayerThicknesses(region);
if (dp[0].zp > layerThicknesses[0])
{
throw new ArgumentException("Top layer thickness must be greater than l* = 1/(mua+musp)");
}
foreach (var rho in rhos)
{
foreach (var z in zs)
Expand Down Expand Up @@ -436,6 +439,10 @@ public override IEnumerable<Complex> FluenceOfRhoAndZAndFt(
{
var dps = GetDiffusionParameters(region);
var layerThicknesses = GetLayerThicknesses(region);
if (dps[0].zp > layerThicknesses[0])
{
throw new ArgumentException("Top layer thickness must be greater than l* = 1/(mua+musp)");
}
foreach (var rho in rhos)
{
foreach (var z in zs)
Expand Down

0 comments on commit af53da8

Please sign in to comment.