!! Copyright (C) Stichting Deltares, 2012-2015. !! !! This program is free software: you can redistribute it and/or modify !! it under the terms of the GNU General Public License version 3, !! as published by the Free Software Foundation. !! !! 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 registered trademarks !! of Stichting Deltares remain the property of Stichting Deltares. All !! rights reserved. program dlwq00 implicit none integer :: argc character(len=256), allocatable :: argv(:) integer(4) :: errorcode integer(4) :: i argc = iargc() + 1 allocate ( argv (argc)) do i = 1, argc call getarg(i - 1, argv(i)) end do call delwaq1(argc, argv, errorcode) if (errorcode == 0) then write (*,*) 'Normal end' else write (*,*) 'Error code:', errorcode end if open ( 1111 , file = 'delwaq.rtn' ) write ( 1111 , * ) errorcode close ( 1111 ) end program