icount_transp=0
icount_transp=icount_transp+1
kgen(icount_transp)=k
il=ilnblnk(gencost_barfile(kgen(icount_transp)))
write(msgbuf,'(A,i4,A,A)') 'Cost ',kgen(icount_transp),
& ': ',gencost_barfile(kgen(icount_transp))(1:il)
do icount=1,icount_transp
integer icount,icount_transp
INTEGER icount_transp
if(using_gencost(k)) icount_transp=icount_transp+1
if(icount_transp.gt.0) using_cost_transp = .TRUE.
& 'using_cost_transp: ',icount_transp,using_cost_transp