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

Unable to compile with ifortran #28

Open
rsdavies opened this issue Feb 10, 2022 · 0 comments · May be fixed by #29
Open

Unable to compile with ifortran #28

rsdavies opened this issue Feb 10, 2022 · 0 comments · May be fixed by #29

Comments

@rsdavies
Copy link

I've tried compiling with all the versions of intels ifortran compiler which I have available on my system:

ifortran 16.0
sm_maths_d1D.f90
error 6834: Array speicifications must be given for result name, not function

ifortran 17.0, 18.3, 19.0
Errors in the make step with sm_geometry.f90 - A separate interface body must have been declared in the program unit or an ancestor of the program unit for the separate module procedure

jdhughes-usgs added a commit to jdhughes-usgs/coretran that referenced this issue Apr 21, 2022
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 a pull request may close this issue.

1 participant