@@ -171,7 +171,7 @@ function get_env(NAME,DEFAULT) result(VALUE)
171
171
integer :: length
172
172
! get length required to hold value
173
173
length= 0
174
- if (NAME.ne. ' ' )then
174
+ if (NAME/= ' ' )then
175
175
call get_environment_variable(NAME, length= howbig,status= stat,trim_name= .true. )
176
176
select case (stat)
177
177
case (1 )
@@ -185,7 +185,7 @@ function get_env(NAME,DEFAULT) result(VALUE)
185
185
allocate (character (len= max (howbig,1 )) :: VALUE)
186
186
! get value
187
187
call get_environment_variable(NAME,VALUE,status= stat,trim_name= .true. )
188
- if (stat.ne. 0 )VALUE= ' '
188
+ if (stat/= 0 )VALUE= ' '
189
189
end select
190
190
else
191
191
VALUE= ' '
@@ -214,9 +214,9 @@ function get_command_arguments_quoted() result(args)
214
214
write (stderr,' (*(g0,1x))' )' <ERROR>*get_command_arguments_stack* error obtaining argument ' ,i
215
215
exit
216
216
elseif (ilength.gt. 0 )then
217
- if (index (arg// ' ' ,' -' ).ne. 1 )then
217
+ if (index (arg// ' ' ,' -' )/= 1 )then
218
218
args= args// quote// arg// quote// ' '
219
- elseif (index (arg,' ' ).ne. 0 )then
219
+ elseif (index (arg,' ' )/= 0 )then
220
220
args= args// quote// arg// quote// ' '
221
221
else
222
222
args= args// arg// ' '
@@ -273,7 +273,7 @@ function separator() result(sep)
273
273
character (len= 4096 ) :: name
274
274
character (len= :),allocatable :: fname
275
275
276
- ! *ifort_bug*! if(sep_cache.ne. ' ')then ! use cached value. NOTE: A parallel code might theoretically use multiple OS
276
+ ! *ifort_bug*! if(sep_cache/= ' ')then ! use cached value. NOTE: A parallel code might theoretically use multiple OS
277
277
! *ifort_bug*! sep=sep_cache
278
278
! *ifort_bug*! return
279
279
! *ifort_bug*! endif
@@ -285,18 +285,18 @@ function separator() result(sep)
285
285
allocate (character (len= arg0_length) :: arg0)
286
286
call get_command_argument(0 ,arg0,status= istat)
287
287
! check argument name
288
- if (index (arg0,' \' ).ne. 0 )then
288
+ if (index (arg0,' \' )/= 0 )then
289
289
sep= ' \'
290
- elseif (index (arg0,' /' ).ne. 0 )then
290
+ elseif (index (arg0,' /' )/= 0 )then
291
291
sep= ' /'
292
292
else
293
293
! try name returned by INQUIRE(3f)
294
294
existing= .false.
295
295
name= ' '
296
296
inquire (file= arg0,iostat= istat,exist= existing,name= name)
297
- if (index (name,' \' ).ne. 0 )then
297
+ if (index (name,' \' )/= 0 )then
298
298
sep= ' \'
299
- elseif (index (name,' /' ).ne. 0 )then
299
+ elseif (index (name,' /' )/= 0 )then
300
300
sep= ' /'
301
301
else
302
302
! well, try some common syntax and assume in current directory
@@ -310,7 +310,7 @@ function separator() result(sep)
310
310
if (existing)then
311
311
sep= ' /'
312
312
else ! check environment variable PATH
313
- sep= merge (' \' ,' /' ,index (get_env(' PATH' ),' \' ).ne. 0 )
313
+ sep= merge (' \' ,' /' ,index (get_env(' PATH' ),' \' )/= 0 )
314
314
! *!write(*,*)'<WARNING>unknown system directory path separator'
315
315
endif
316
316
endif
0 commit comments