subroutine wrcurt(comfil ,lundia ,error ,itcur ,ntcur , & & itimc ,mmax ,nmax ,kmax ,nmaxus , & & lstsci ,lsecfl ,s1 ,u1 ,v1 , & & r1 ,qu ,qv ,dzu1 ,dzv1 , & & rbuff ,kmaxz ,hu ,hv ,thick , & & gdp ) !----- GPL --------------------------------------------------------------------- ! ! Copyright (C) Stichting Deltares, 2011-2014. ! ! 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 ! use globaldata ! implicit none ! type(globdat),target :: gdp ! ! The following list of pointer parameters is used to point inside the gdp structure ! logical , pointer :: only_distot_from_com logical , pointer :: zmodel logical , pointer :: first integer , pointer :: celidt integer, dimension(:, :) , pointer :: elmdms type (nefiselement) , pointer :: nefiselem ! ! Local parameters ! integer, parameter :: nelmx = 10 ! ! Global variables ! integer , intent(in) :: itcur !! Current time counter for the com- !! munication file, where starting !! point depend on CYCLIC integer , intent(in) :: itimc !! Current time step counter for 2D !! system integer :: kmax ! Description and declaration in esm_alloc_int.f90 integer :: kmaxz !! = KMAX for Z-model, = 0 for sigma-model !! Needed for correct dimensioning of DZU1 and DZV1 integer , intent(in) :: lsecfl ! Description and declaration in dimens.igs integer , intent(in) :: lstsci ! Description and declaration in esm_alloc_int.f90 integer :: lundia ! Description and declaration in inout.igs integer :: mmax ! Description and declaration in esm_alloc_int.f90 integer :: nmax ! Description and declaration in esm_alloc_int.f90 integer :: nmaxus ! Description and declaration in esm_alloc_int.f90 integer , intent(in) :: ntcur !! Total number of timesteps on com- !! munication file (to write to) real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub) , intent(in) :: s1 ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub, kmaxz) :: dzu1 ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub, kmaxz) :: dzv1 ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub) :: hu ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub) :: hv ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub, kmax) , intent(in) :: qu ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub, kmax) , intent(in) :: qv ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub, kmax) , intent(in) :: u1 ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub, kmax) , intent(in) :: v1 ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(gdp%d%nlb:gdp%d%nub, gdp%d%mlb:gdp%d%mub, kmax, lstsci), intent(in) :: r1 ! Description and declaration in esm_alloc_real.f90 real(fp), dimension(nmaxus, mmax, kmax) :: rbuff ! Description and declaration in r-i-ch.igs real(fp), dimension(kmax) :: thick ! Description and declaration in esm_alloc_real.f90 logical , intent(out) :: error !! Flag=TRUE if an error is encountered character(*) :: comfil !! Name for communication file !! com-