!----- GPL --------------------------------------------------------------------- ! ! Copyright (C) Stichting Deltares, 2011-2022. ! ! This program is free software: you can redistribute it and/or modify ! it under the terms of the GNU General Public License as published by ! the Free Software Foundation version 3. ! ! This program is distributed in the hope that it will be useful, ! but WITHOUT ANY WARRANTY; without even the implied warranty of ! MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ! GNU General Public License for more details. ! ! You should have received a copy of the GNU General Public License ! along with this program. If not, see . ! ! contact: delft3d.support@deltares.nl ! Stichting Deltares ! P.O. Box 177 ! 2600 MH Delft, The Netherlands ! ! All indications and logos of, and references to, "Delft3D" and "Deltares" ! are registered trademarks of Stichting Deltares, and remain the property of ! Stichting Deltares. All rights reserved. ! !------------------------------------------------------------------------------- ! $Id$ ! $HeadURL$ 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