subroutine wrisub ( lu ) include 'data.inc' integer i, lu, iitem c ITEMS with defined ITEMGR are substances do i = 1,nitem if (itemgr(i).ne.'') then if (itemwk(i).eq.'x') then write (lu,1000) j trim(itemid(i)),trim(itemnm(i)),trim(itemun(i)) else write (lu,1010) j trim(itemid(i)),trim(itemnm(i)),trim(itemun(i)) endif endif enddo c ITEMS with undefined ITEMGR and defined ITEMDE are input do i = 1,nitem if (itemgr(i).eq.''.and.itemde(i).ne.-999.) then write (lu,1020) j trim(itemid(i)),trim(itemnm(i)),trim(itemun(i)),itemde(i) endif enddo do i = 1,noutp call zoek (outpit(i),nitem,itemid,10,iitem) if (iitem.le.0) stop 'Bug 17-01-2011' write (lu,1030) trim(outpit(i)), trim(itemnm(iitem)) enddo write (lu,1040) write (lu,1041) (trim(procid(i)),trim(procnm(i)),i=1,nproc) write (lu,1043) 1000 format ('substance ''',a,''' active'/ j ' description ''',a,''''/ j ' concentration-unit ''',a,''''/ j ' waste-load-unit ''-'''/ j 'end-substance') 1010 format ('substance ''',a,''' inactive'/ j ' description ''',a,''''/ j ' concentration-unit ''',a,''''/ j ' waste-load-unit ''-'''/ j 'end-substance') 1020 format ('parameter ''',a,''''/ j ' description ''',a,''''/ j ' unit ''',a,''''/ j ' value ',g15.7/ j 'end-parameter') 1030 format ('output ''',a,''''/ j ' description ''',a,''''/ j 'end-output') 1040 format ('active-processes') 1041 format (' name ''',a,''' ''',a,'''') 1043 format ('end-active-processes') return end