Skip to content

Commit

Permalink
coal scale factor fix: do not round the numerator
Browse files Browse the repository at this point in the history
  • Loading branch information
pdziekan committed Jun 28, 2017
1 parent 959068c commit e9af6c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/particles_impl_coal.ipp
Expand Up @@ -73,7 +73,7 @@ namespace libcloudphxx
real_t operator()(const n_t &n)
{
// see section 5.1.3 in Shima et al. 2009
return real_t((n*(n-1))/2) / (n/2);
return real_t(n*(n-1))/2. / (n/2);
}
};

Expand Down

0 comments on commit e9af6c2

Please sign in to comment.