mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Reduce torus coincident zero root cutoff to 1e-10
This commit is contained in:
parent
ebb6736ba6
commit
d834f83d08
1 changed files with 1 additions and 1 deletions
|
|
@ -1042,7 +1042,7 @@ double torus_distance(double x1, double x2, double x3, double u1, double u2,
|
|||
// zero but possibly small and positive. A tolerance is set to discard that
|
||||
// zero.
|
||||
double distance = INFTY;
|
||||
double cutoff = coincident ? 1e-9 : 0.0;
|
||||
double cutoff = coincident ? 1e-10 : 0.0;
|
||||
for (int i = 0; i < 4; ++i) {
|
||||
if (roots[i].imag() == 0) {
|
||||
double root = roots[i].real();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue