Skip to content

Commit be6990b

Browse files
committed
update to beacb0d
1 parent beacb0d commit be6990b

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

src/Dust.cpp

+7-4
Original file line numberDiff line numberDiff line change
@@ -4538,10 +4538,6 @@ void CDustComponent::calcStochasticHeatingPropabilities(CGridBasic * grid,
45384538
uint i_density,
45394539
dlist & wl_list)
45404540
{
4541-
// size of wl_list must equal WL_STEPS
4542-
if(wl_list.size() != WL_STEPS)
4543-
cout << "\nERROR: Size of the wavelength array does not match (stochastic heating)";
4544-
45454541
// Get local min and max grain sizes
45464542
double a_min = getSizeMin(grid, *cell);
45474543
double a_max = getSizeMax(grid, *cell);
@@ -4555,6 +4551,13 @@ void CDustComponent::calcStochasticHeatingPropabilities(CGridBasic * grid,
45554551
return;
45564552
}
45574553

4554+
// size of wl_list must equal WL_STEPS
4555+
if(wl_list.size() != WL_STEPS)
4556+
{
4557+
cout << "\nERROR: Size of the wavelength array does not match (stochastic heating)" << endl;
4558+
return;
4559+
}
4560+
45584561
for(uint a = 0; a < nr_of_dust_species; a++)
45594562
{
45604563
// Check if dust grains should have been stochastically heated

0 commit comments

Comments
 (0)