File tree 1 file changed +7
-4
lines changed
1 file changed +7
-4
lines changed Original file line number Diff line number Diff line change @@ -4538,10 +4538,6 @@ void CDustComponent::calcStochasticHeatingPropabilities(CGridBasic * grid,
4538
4538
uint i_density,
4539
4539
dlist & wl_list)
4540
4540
{
4541
- // size of wl_list must equal WL_STEPS
4542
- if (wl_list.size () != WL_STEPS)
4543
- cout << " \n ERROR: Size of the wavelength array does not match (stochastic heating)" ;
4544
-
4545
4541
// Get local min and max grain sizes
4546
4542
double a_min = getSizeMin (grid, *cell);
4547
4543
double a_max = getSizeMax (grid, *cell);
@@ -4555,6 +4551,13 @@ void CDustComponent::calcStochasticHeatingPropabilities(CGridBasic * grid,
4555
4551
return ;
4556
4552
}
4557
4553
4554
+ // size of wl_list must equal WL_STEPS
4555
+ if (wl_list.size () != WL_STEPS)
4556
+ {
4557
+ cout << " \n ERROR: Size of the wavelength array does not match (stochastic heating)" << endl;
4558
+ return ;
4559
+ }
4560
+
4558
4561
for (uint a = 0 ; a < nr_of_dust_species; a++)
4559
4562
{
4560
4563
// Check if dust grains should have been stochastically heated
You can’t perform that action at this time.
0 commit comments