Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ifort): address issue with Intel OneAPI ifort compilation #29

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,5 @@ cmake_install.cmake
*.exe
lib/
include/
build/
bin/
30 changes: 30 additions & 0 deletions src/spatial/m_geometry.f90
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,36 @@ module function orient3D(ax, ay, az, bx, by, bz, cx, cy, cz, dx, dy, dz) result(
!! [-ve, 0, +ve] for point d [right, on, left] of the plane defined by points a -> b -> c
end function
end interface

interface
module subroutine fastTwoDiff(a, b, x, y)
!! Compute the difference two numbers and compute the numerical round-off error.
!! This should only be used if you know that the magnitude of a is greater than or equal to b, otherwise, you should use the slower twoDiff routine
!====================================================================!
real(r64), intent(in) :: a
!! First number
real(r64), intent(in) :: b
!! Second number
real(r64), intent(out) :: x
!! Result
real(r64), intent(out) :: y
end subroutine
end interface

interface
module subroutine fastTwoSum(a, b, x, y)
!! Compute the sum of two numbers and compute the numerical round-off error.
!! This should only be used if you know that the magnitude of a is greater than or equal to b, otherwise, you should use the slower twoSum routine
!====================================================================!
real(r64), intent(in) :: a
!! First number
real(r64), intent(in) :: b
!! Second number
real(r64), intent(out) :: x
!! Result
real(r64), intent(out) :: y
end subroutine
end interface

interface
!====================================================================!
Expand Down