Skip to content

Commit

Permalink
Use fma_disabled=True (#961)
Browse files Browse the repository at this point in the history
* Update intersections.py

* Update intersections.py
  • Loading branch information
philipc2 authored Sep 17, 2024
1 parent 2811d5b commit f50e4bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions uxarray/grid/intersections.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def gca_gca_intersection(gca1_cart, gca2_cart, fma_disabled=True):
Cartesian coordinates of the first GCA.
gca2_cart : [n, 3] np.ndarray where n is the number of intersection points
Cartesian coordinates of the second GCA.
fma_disabled : bool, optional (default=False)
fma_disabled : bool, optional (default=True)
If True, the FMA operation is disabled. And a naive `np.cross` is used instead.
Returns
Expand Down Expand Up @@ -116,7 +116,7 @@ def gca_gca_intersection(gca1_cart, gca2_cart, fma_disabled=True):


def gca_constLat_intersection(
gca_cart, constZ, fma_disabled=False, verbose=False, is_directed=False
gca_cart, constZ, fma_disabled=True, verbose=False, is_directed=False
):
"""Calculate the intersection point(s) of a Great Circle Arc (GCA) and a
constant latitude line in a Cartesian coordinate system.
Expand All @@ -130,7 +130,7 @@ def gca_constLat_intersection(
gca_cart : [2, 3] np.ndarray Cartesian coordinates of the two end points GCA.
constZ : float
The constant latitude represented in cartesian of the latitude line.
fma_disabled : bool, optional (default=False)
fma_disabled : bool, optional (default=True)
If True, the FMA operation is disabled. And a naive `np.cross` is used instead.
verbose : bool, optional (default=False)
If True, the function prints out the intermediate results.
Expand Down

0 comments on commit f50e4bb

Please sign in to comment.