Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/VirtualPhotonics/vts
Browse files Browse the repository at this point in the history
  • Loading branch information
hayakawa16 committed Mar 27, 2019
2 parents 8d48b01 + 33b28c7 commit 2481087
Showing 1 changed file with 8 additions and 1 deletion.
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 2481087

Please sign in to comment.