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

Conversation

jdhughes-usgs
Copy link

Modified fastTwoDiff and fastTwoSum in order to compile with OneAPI ifort
(2021.5.0 20211109). Added an interface to m_geometry for fastTwoDiff and
fastTwoSum. Prior to modification got the following error

/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(230): error #6115: A separate interface body must have been declared in the program unit or an ancestor of the program unit for the separate module procedure.   [FASTTWODIFF]
  module subroutine fastTwoDiff(a, b, x, y)
--------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(234): error #6451: A dummy argument name is required in this context.   [A]
    real(r64), intent(in) :: a
-----------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(236): error #6451: A dummy argument name is required in this context.   [B]
    real(r64), intent(in) :: b
-----------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(238): error #6451: A dummy argument name is required in this context.   [X]
    real(r64), intent(out) :: x
------------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(240): error #6451: A dummy argument name is required in this context.   [Y]
    real(r64), intent(out) :: y
------------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(249): error #6115: A separate interface body must have been declared in the program unit or an ancestor of the program unit for the separate module procedure.   [FASTTWOSUM]
  module subroutine fastTwoSum(a, b, x, y)
--------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(253): error #6451: A dummy argument name is required in this context.   [A]
    real(r64), intent(in) :: a
-----------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(255): error #6451: A dummy argument name is required in this context.   [B]
    real(r64), intent(in) :: b
-----------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(257): error #6451: A dummy argument name is required in this context.   [X]
    real(r64), intent(out) :: x
------------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(259): error #6451: A dummy argument name is required in this context.   [Y]
    real(r64), intent(out) :: y
------------------------------^
compilation aborted for /Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90 (code 1)
make[2]: *** [CMakeFiles/coretran.dir/spatial/sm_geometry.f90.o] Error 1
make[1]: *** [CMakeFiles/coretran.dir/all] Error 2
make: *** [all] Error 2

closes #28 reopen issue if sm_maths_d1D.f90 issue still exists

Modified fastTwoDiff and fastTwoSum in order to compile with OneAPI ifort
(2021.5.0 20211109). Added an interface to m_geometry for fastTwoDiff and
fastTwoSum. Prior to modification got the following error

/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(230): error #6115: A separate interface body must have been declared in the program unit or an ancestor of the program unit for the separate module procedure.   [FASTTWODIFF]
  module subroutine fastTwoDiff(a, b, x, y)
--------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(234): error #6451: A dummy argument name is required in this context.   [A]
    real(r64), intent(in) :: a
-----------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(236): error #6451: A dummy argument name is required in this context.   [B]
    real(r64), intent(in) :: b
-----------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(238): error #6451: A dummy argument name is required in this context.   [X]
    real(r64), intent(out) :: x
------------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(240): error #6451: A dummy argument name is required in this context.   [Y]
    real(r64), intent(out) :: y
------------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(249): error #6115: A separate interface body must have been declared in the program unit or an ancestor of the program unit for the separate module procedure.   [FASTTWOSUM]
  module subroutine fastTwoSum(a, b, x, y)
--------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(253): error #6451: A dummy argument name is required in this context.   [A]
    real(r64), intent(in) :: a
-----------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(255): error #6451: A dummy argument name is required in this context.   [B]
    real(r64), intent(in) :: b
-----------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(257): error #6451: A dummy argument name is required in this context.   [X]
    real(r64), intent(out) :: x
------------------------------^
/Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90(259): error #6451: A dummy argument name is required in this context.   [Y]
    real(r64), intent(out) :: y
------------------------------^
compilation aborted for /Users/jdhughes/Documents/Development/coretran/src/spatial/sm_geometry.f90 (code 1)
make[2]: *** [CMakeFiles/coretran.dir/spatial/sm_geometry.f90.o] Error 1
make[1]: *** [CMakeFiles/coretran.dir/all] Error 2
make: *** [all] Error 2

closes leonfoks#28 reopen issue if sm_maths_d1D.f90 issue still exists
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unable to compile with ifortran
1 participant