/[lmdze]/trunk/phylmd/CV_routines/cv_trigger.f
ViewVC logotype

Annotation of /trunk/phylmd/CV_routines/cv_trigger.f

Parent Directory Parent Directory | Revision Log Revision Log


Revision 103 - (hide annotations)
Fri Aug 29 13:00:05 2014 UTC (9 years, 9 months ago) by guez
File size: 766 byte(s)
Renamed module cvparam to cv_param. Deleted procedure
cv_param. Changed variables of module cv_param into parameters.

In procedures cv_driver, cv_uncompress and cv3_uncompress, removed
some arguments giving dimensions and used module variables klon and
klev instead.

In procedures gradiv2, laplacien_gam and laplacien, changed
declarations of local variables because klevel is not always klev.

Removed code for nudging surface pressure.

Removed arguments pim and pjm of tau2alpha. Added assignment of false
to variable first.

Replaced real argument del of procedures foeew and FOEDE by logical
argument.

1 guez 52
2     SUBROUTINE cv_trigger(len,nd,icb,cbmf,tv,tvp,iflag)
3 guez 103 use cv_param
4 guez 52 implicit none
5    
6     !-------------------------------------------------------------------
7     ! --- Test for instability.
8     ! --- If there was no convection at last time step and parcel
9     ! --- is stable at icb, then set iflag to 4.
10     !-------------------------------------------------------------------
11    
12    
13     ! inputs:
14 guez 97 integer, intent(in):: len, nd, icb(len)
15 guez 103 real, intent(in):: cbmf(len), tv(len,nd), tvp(len,nd)
16 guez 52
17     ! outputs:
18     integer iflag(len) ! also an input
19    
20     ! local variables:
21     integer i
22    
23    
24     do 390 i=1,len
25     if((cbmf(i).eq.0.0) .and.(iflag(i).eq.0).and. &
26     (tvp(i,icb(i)).le.(tv(i,icb(i))-dtmax)))iflag(i)=4
27     390 continue
28    
29     return
30     end

  ViewVC Help
Powered by ViewVC 1.1.21