Two small fixes for IBM XL Fortran compiler

This commit is contained in:
Paul Romano 2015-04-26 10:03:53 +00:00
parent cd67d8f526
commit fa820b060d
2 changed files with 4 additions and 3 deletions

View file

@ -116,7 +116,8 @@ elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "PGI")
elseif(CMAKE_Fortran_COMPILER_ID STREQUAL "XL")
# IBM XL compiler options
set(f90flags "-WF,-DNO_F2008 -O2")
set(f90flags "-O2")
add_definitions(-DNO_F2008)
if(debug)
set(f90flags "-g -C -qflag=i:i -u")
set(ldflags "-g")

View file

@ -151,7 +151,7 @@ contains
! TO_LOWER converts a string to all lower case characters
!===============================================================================
elemental function to_lower(word) result(word_lower)
function to_lower(word) result(word_lower)
character(*), intent(in) :: word
character(len=len(word)) :: word_lower
@ -174,7 +174,7 @@ contains
! TO_UPPER converts a string to all upper case characters
!===============================================================================
elemental function to_upper(word) result(word_upper)
function to_upper(word) result(word_upper)
character(*), intent(in) :: word
character(len=len(word)) :: word_upper