@@ -1127,24 +1127,9 @@ subroutine json_matrix_info(json,p,is_matrix,var_type,n_sets,set_size,name)
1127
1127
integer (IK) :: icount ! ! number of elements in a set
1128
1128
integer :: i ! ! counter
1129
1129
integer :: j ! ! counter
1130
- #if defined __GFORTRAN__
1131
- character (kind= CK,len= :),allocatable :: p_name
1132
- #endif
1133
1130
1134
1131
! get info about the variable:
1135
- #if defined __GFORTRAN__
1136
- call json% info(p,vartype,nr)
1137
- if (present (name)) then ! workaround for gfortran bug
1138
- if (allocated (p% name)) then
1139
- p_name = p% name
1140
- name = p_name
1141
- else
1142
- name = ' '
1143
- end if
1144
- end if
1145
- #else
1146
1132
call json% info(p,vartype,nr,name)
1147
- #endif
1148
1133
1149
1134
is_matrix = (vartype== json_array)
1150
1135
@@ -1248,9 +1233,6 @@ subroutine json_matrix_info_by_path(json,p,path,is_matrix,found,&
1248
1233
1249
1234
type (json_value),pointer :: p_var
1250
1235
logical (LK) :: ok
1251
- #if defined __GFORTRAN__
1252
- character (kind= CK,len= :),allocatable :: p_name
1253
- #endif
1254
1236
1255
1237
call json% get(p,path,p_var,found)
1256
1238
@@ -1269,19 +1251,7 @@ subroutine json_matrix_info_by_path(json,p,path,is_matrix,found,&
1269
1251
else
1270
1252
1271
1253
! get info about the variable:
1272
- #if defined __GFORTRAN__
1273
- call json% matrix_info(p_var,is_matrix,var_type,n_sets,set_size)
1274
- if (present (name)) then ! workaround for gfortran bug
1275
- if (allocated (p_var% name)) then
1276
- p_name = p_var% name
1277
- name = p_name
1278
- else
1279
- name = ' '
1280
- end if
1281
- end if
1282
- #else
1283
1254
call json% matrix_info(p_var,is_matrix,var_type,n_sets,set_size,name)
1284
- #endif
1285
1255
if (json% failed() .and. present (found)) then
1286
1256
found = .false.
1287
1257
call json% clear_exceptions()
0 commit comments