Skip to content

Commit

Permalink
Fix character*N / character(len=N) function mismatch
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonathan Moussa committed Aug 24, 2022
1 parent a4a17a6 commit 414eea2
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ if(F2003_INTRINSICS)
target_compile_definitions(mopac-makpol PRIVATE MOPAC_IARGC=command_argument_count)
target_compile_definitions(mopac-makpol PRIVATE MOPAC_GETARG=get_command_argument)
if(BUILD_WINMOPAC)
target_compile_definitions(mopac-win PRIVATE MOPAC_IARGC=command_argument_count)
target_compile_definitions(mopac-win PRIVATE MOPAC_GETARG=get_command_argument)
target_compile_definitions(mopac-bz PRIVATE MOPAC_IARGC=command_argument_count)
target_compile_definitions(mopac-bz PRIVATE MOPAC_GETARG=get_command_argument)
endif()
Expand All @@ -170,6 +172,8 @@ else()
target_compile_definitions(mopac-makpol PRIVATE MOPAC_IARGC=iargc)
target_compile_definitions(mopac-makpol PRIVATE MOPAC_GETARG=getarg)
if(BUILD_WINMOPAC)
target_compile_definitions(mopac-win PRIVATE MOPAC_IARGC=iargc)
target_compile_definitions(mopac-win PRIVATE MOPAC_GETARG=getarg)
target_compile_definitions(mopac-bz PRIVATE MOPAC_IARGC=iargc)
target_compile_definitions(mopac-bz PRIVATE MOPAC_GETARG=getarg)
endif()
Expand Down
2 changes: 1 addition & 1 deletion src/PARAM/datinp.F90
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ subroutine datinp
! The weights given to each reference datum depend on the elements present.
! Weights are assigned according to the type of element
double precision, dimension (107) :: element_weights
character, external :: get_a_name*300
character(len=300), external :: get_a_name
integer, external :: end_of_keyword
double precision, external :: seconds, reada
double precision, parameter :: &
Expand Down
2 changes: 1 addition & 1 deletion src/PARAM/parkey.F90
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ subroutine parkey (keywrd)
character (len=*), intent (in) :: keywrd
integer :: i, j, k
character :: num*1, line*300
character, external :: get_a_name*300
character(len=300), external :: get_a_name
integer, external :: end_of_keyword
double precision, external :: reada
if (Index (keywrd, " MNDO ") /= 0) &
Expand Down
2 changes: 1 addition & 1 deletion src/PARAM/savgeo.F90
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ subroutine savgeo (loop, geo, na, nb, nc, xparam, loc)
character :: num*1
intrinsic Index
double precision, external :: reada
character, external :: get_a_name*300
character(len=300), external :: get_a_name
save :: iatm, igeo
!--------------------------------------------------------------------
!
Expand Down
2 changes: 1 addition & 1 deletion src/input/wrtkey.F90
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ subroutine wrtcon (allkey)
integer :: i, ielec, ilevel, j, k, l
logical :: l_add_H = .false., l_temp
character :: num*1, num1*1
character, external :: get_a_name*300, get_text*300
character(len=300), external :: get_a_name, get_text
integer, external :: end_of_keyword
logical, external :: myword
double precision, external :: reada
Expand Down

0 comments on commit 414eea2

Please sign in to comment.