subroutine writek(nammap, d, xb, yb, m, n, np) !----- GPL --------------------------------------------------------------------- ! ! Copyright (C) Stichting Deltares, 2011-2016. ! ! 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$ !!--description----------------------------------------------------------------- ! NONE !!--pseudo code and references-------------------------------------------------- ! NONE !!--declarations---------------------------------------------------------------- use precision_basics ! implicit none ! ! Global variables ! integer , intent(in) :: m integer , intent(in) :: n integer , intent(in) :: np real, dimension(m,n), intent(in) :: d real(kind=hp), dimension(m,n), intent(in) :: xb real(kind=hp), dimension(m,n), intent(in) :: yb character(20) , intent(in) :: nammap ! ! Local variables ! integer :: i integer :: j integer :: lun integer, external :: new_lun ! !! executable statements ------------------------------------------------------- ! lun=new_lun() open(lun,file=nammap) write(lun,'(a4)') 'SCAL' write(lun,*)np,3,n,m do i=1,m do j=1,n write(lun,'(2f10.1,f9.3)') xb(i,j),yb(i,j),d(i,j) enddo enddo close(lun) end subroutine writek