Skip to content

Commit

Permalink
added missing bracket and fixed wrong stokes parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
mlietzow committed Jan 30, 2025
1 parent 793a894 commit 0cfdb08
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/DustComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4932,9 +4932,6 @@ StokesVector CDustComponent::calcEmissivityEmi(CGridBasic * grid,
{
if(sizeIndexUsed(a, a_min, a_max))
{
// Get index of theta scattering
uint thID = phID == PH_MIE ? getScatThetaID(scattering_theta,a,w) : 0;

// Get cross sections and relative weight of the current dust grain size
calcCrossSections(grid, pp, i_density, a, mag_field_theta, cs);

Expand Down Expand Up @@ -4983,7 +4980,7 @@ StokesVector CDustComponent::calcEmissivityEmi(CGridBasic * grid,

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

if(phID == PH_MIE)
{
// Get index of theta scattering
uint thID = getScatThetaID(scattering_theta, a, w);

// Get scattering matrix
const Matrix2D & mat_sca = getScatteringMatrix(a, w, 0, 0, thID);

Expand Down

0 comments on commit 0cfdb08

Please sign in to comment.