@@ -6963,17 +6963,17 @@ subroutine get_chars_from_array(json, element, i, count)
69636963 ! size the output array:
69646964 if (.not. initialized) then
69656965 ! string length long enough to hold the longest one
6966- #if defined __GFORTRAN__
6967- ! this is a work-around for a bug
6968- ! in the gfortran 4.9 compiler.
6969- call allocate_vec(max_len,count)
6970- ! block
6971- ! character(kind=CK,len=max_len),dimension(count) :: tmp_array
6972- ! vec = tmp_array
6973- ! end block
6974- #else
6966+ ! #if defined __GFORTRAN__
6967+ ! ! this is a work-around for a bug
6968+ ! ! in the gfortran 4.9 compiler.
6969+ ! call allocate_vec(max_len,count)
6970+ ! !block
6971+ ! ! character(kind=CK,len=max_len),dimension(count) :: tmp_array
6972+ ! ! vec = tmp_array
6973+ ! !end block
6974+ ! #else
69756975 allocate ( character (kind= CK,len= max_len) :: vec(count) )
6976- #endif
6976+ ! #endif
69776977 initialized = .true.
69786978 end if
69796979
@@ -6990,20 +6990,20 @@ subroutine get_chars_from_array(json, element, i, count)
69906990
69916991 end subroutine get_chars_from_array
69926992
6993- subroutine allocate_vec (max_len ,count )
6994-
6995- ! ! try to allocate on assignment to avoid gfortran bug.
6996-
6997- implicit none
6998-
6999- integer (IK),intent (in ) :: max_len
7000- integer (IK),intent (in ) :: count
7001-
7002- character (kind= CK,len= max_len),dimension (count) :: tmp_array
7003-
7004- vec = tmp_array
7005-
7006- end subroutine allocate_vec
6993+ ! subroutine allocate_vec(max_len,count)
6994+ !
6995+ ! !! try to allocate on assignment to avoid gfortran bug.
6996+ !
6997+ ! implicit none
6998+ !
6999+ ! integer(IK),intent(in) :: max_len
7000+ ! integer(IK),intent(in) :: count
7001+ !
7002+ ! character(kind=CK,len=max_len),dimension(count) :: tmp_array
7003+ !
7004+ ! vec = tmp_array
7005+ !
7006+ ! end subroutine allocate_vec
70077007
70087008 end subroutine json_get_alloc_string_vec
70097009! *****************************************************************************************
0 commit comments