source: branches/jerome/src_flexwrf_v3.1/convmix.f90 @ 16

Last change on this file since 16 was 16, checked in by jebri, 10 years ago

sources for flexwrf v3.1

File size: 3.1 KB
Line 
1!***********************************************************************
2!* Copyright 1998,1999,2000,2001,2002,2005,2007,2008,2009,2010         *
3!* Andreas Stohl, Petra Seibert, A. Frank, Gerhard Wotawa,             *
4!* Caroline Forster, Sabine Eckhardt, John Burkhart, Harald Sodemann   *
5!*                                                                     *
6!* This file is part of FLEXPART.                                      *
7!*                                                                     *
8!* FLEXPART is free software: you can redistribute it and/or modify    *
9!* it under the terms of the GNU General Public License as published by*
10!* the Free Software Foundation, either version 3 of the License, or   *
11!* (at your option) any later version.                                 *
12!*                                                                     *
13!* FLEXPART is distributed in the hope that it will be useful,         *
14!* but WITHOUT ANY WARRANTY; without even the implied warranty of      *
15!* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the       *
16!* GNU General Public License for more details.                        *
17!*                                                                     *
18!* You should have received a copy of the GNU General Public License   *
19!* along with FLEXPART.  If not, see <http://www.gnu.org/licenses/>.   *
20!***********************************************************************
21      subroutine convmix(itime)
22!                          i
23!**************************************************************
24!     handles all the calculations related to convective mixing
25!     Petra Seibert, Bernd C. Krueger, Feb 2001
26!     nested grids included, Bernd C. Krueger, May 2001
27!
28!     Changes by Caroline Forster, April 2004 - February 2005:
29!       convmix called every lsynctime seconds
30!     CHANGES by A. Stohl:
31!       various run-time optimizations - February 2005
32!**************************************************************
33
34  use flux_mod
35  use par_mod
36  use com_mod
37  use conv_mod
38
39  implicit none
40
41  integer :: igr,igrold, ipart, itime, ix, j, inest
42  integer :: ipconv,stat
43  integer :: jy, kpart, ktop, ngrid,kz
44!  integer :: igrid(maxpart), ipoint(maxpart), igridn(maxpart,maxnests)
45  integer,allocatable, dimension (:) :: igrid,ipoint
46  integer,allocatable, dimension (:,:) :: igridn
47
48  ! itime [s]                 current time
49  ! igrid(maxpart)            horizontal grid position of each particle
50  ! igridn(maxpart,maxnests)  dto. for nested grids
51  ! ipoint(maxpart)           pointer to access particles according to grid position
52
53  logical :: lconv
54  real :: x, y, xtn,ytn, ztold, delt
55  real :: dt1,dt2,dtt
56  integer :: mind1,mind2
57  ! dt1,dt2,dtt,mind1,mind2       variables used for time interpolation
58  integer :: itage,nage
59  real,parameter :: eps=nxmax/3.e5
60
61  real :: duma, dumz(nuvzmax+1)
62
63      write(*,'(//a,a//)') &
64          '*** Stopping in subr. convmix ***', &
65          '    This is not implemented for FLEXPART_WRF'
66      stop
67
68    allocate(igrid(maxpart) ,stat=stat)
69    allocate(ipoint(maxpart) ,stat=stat)
70    allocate(igridn(maxpart,maxnests) ,stat=stat)
71
72
73      return
74      end subroutine convmix
Note: See TracBrowser for help on using the repository browser.
hosted by ZAMG