Skip to content

Commit 0cfdb08

Browse files
committed
added missing bracket and fixed wrong stokes parameter
1 parent 793a894 commit 0cfdb08

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/DustComponent.cpp

+4-4
Original file line numberDiff line numberDiff line change
@@ -4932,9 +4932,6 @@ StokesVector CDustComponent::calcEmissivityEmi(CGridBasic * grid,
49324932
{
49334933
if(sizeIndexUsed(a, a_min, a_max))
49344934
{
4935-
// Get index of theta scattering
4936-
uint thID = phID == PH_MIE ? getScatThetaID(scattering_theta,a,w) : 0;
4937-
49384935
// Get cross sections and relative weight of the current dust grain size
49394936
calcCrossSections(grid, pp, i_density, a, mag_field_theta, cs);
49404937

@@ -4983,7 +4980,7 @@ StokesVector CDustComponent::calcEmissivityEmi(CGridBasic * grid,
49834980

49844981
#if BENCHMARK == CAMPS
49854982
// To perform Camps et. al (2015) benchmark.
4986-
tmp_stokes[a].addQ(cs.Cabs * pl;
4983+
tmp_stokes[a].addI(cs.Cabs * pl);
49874984
#else
49884985
// Add relative emissivity from this temperature
49894986
tmp_stokes[a].addI(cs.Cabs * pl);
@@ -5005,6 +5002,9 @@ StokesVector CDustComponent::calcEmissivityEmi(CGridBasic * grid,
50055002

50065003
if(phID == PH_MIE)
50075004
{
5005+
// Get index of theta scattering
5006+
uint thID = getScatThetaID(scattering_theta, a, w);
5007+
50085008
// Get scattering matrix
50095009
const Matrix2D & mat_sca = getScatteringMatrix(a, w, 0, 0, thID);
50105010

0 commit comments

Comments
 (0)