We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0531ca4 commit 2e4c714Copy full SHA for 2e4c714
src/celeritas/optical/surface/GaussianRoughnessSampler.hh
@@ -103,9 +103,7 @@ CELER_FUNCTION Real3 GaussianRoughnessSampler::operator()(Engine& rng)
103
// nonpositive slope are generally vanishingly small)
104
alpha = std::fabs(sample_alpha_(rng));
105
} while (alpha >= alpha_max_);
106
- sin_alpha = std::sin(alpha);
107
- cos_alpha = std::cos(alpha);
108
- // sincos(alpha, &sin_alpha, &cos_alpha);
+ sincos(alpha, &sin_alpha, &cos_alpha);
109
110
// Transform to polar angle using rejection
111
} while (RejectionSampler{sin_alpha, f_max_}(rng));
0 commit comments