Comparing two floats/doubles: are they the same? #3227
-
In nurbs.cpp the class KnotVector has a function One of the steps in the process is to loop over the knots in both knotvectors and determine whether the knots are the same. This is done by means of a logical condition Reading up on this kind of problems on for instance here (stackoverflow) indicates that these problems are very delicate and solving it with I have tried to find a same kind of situation elsewhere in MFEM but could not find one. I think it would make sense to use something like |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If the left-hand side is O(1) and is invariant of scaling of the domain, refinements, element size, etc, then it's probably fine. |
Beta Was this translation helpful? Give feedback.
If the left-hand side is O(1) and is invariant of scaling of the domain, refinements, element size, etc, then it's probably fine.