source: LMDZ5/trunk/libf/dyn3d_common/adaptdt.F @ 2600

Last change on this file since 2600 was 2600, checked in by Ehouarn Millour, 8 years ago

Cleanup in the dynamics: turn comvert.h into module comvert_mod.F90
EM

  • Property copyright set to
    Name of program: LMDZ
    Creation date: 1984
    Version: LMDZ5
    License: CeCILL version 2
    Holder: Laboratoire de m\'et\'eorologie dynamique, CNRS, UMR 8539
    See the license file in the root directory
  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
File size: 1.3 KB
Line 
1!
2! $Id: adaptdt.F 2600 2016-07-23 05:45:38Z emillour $
3!
4      subroutine adaptdt(nadv,dtbon,n,pbaru,
5     c                   masse)
6
7!      USE control_mod
8      USE comconst_mod, ONLY: dtvr
9      IMPLICIT NONE
10
11      include "dimensions.h"
12      include "paramet.h"
13      include "comdissip.h"
14      include "comgeom2.h"
15      include "logic.h"
16      include "temps.h"
17      include "ener.h"
18      include "description.h"
19
20c----------------------------------------------------------
21c     Arguments
22c----------------------------------------------------------
23      INTEGER n,nadv
24      REAL dtbon
25      REAL pbaru(iip1,jjp1,llm)
26      REAL masse(iip1,jjp1,llm)
27c----------------------------------------------------------   
28c     Local
29c----------------------------------------------------------
30      INTEGER i,j,l
31      REAL CFLmax,aaa,bbb
32     
33        CFLmax=0.
34        do l=1,llm
35         do j=2,jjm
36          do i=1,iim
37             aaa=pbaru(i,j,l)*dtvr/masse(i,j,l)
38             CFLmax=max(CFLmax,aaa)
39             bbb=-pbaru(i,j,l)*dtvr/masse(i+1,j,l)
40             CFLmax=max(CFLmax,bbb)
41          enddo
42         enddo
43        enddo             
44        n=int(CFLmax)+1
45c pour reproduire cas VL du code qui appele x,y,z,y,x
46c        if (nadv.eq.30) n=n/2   ! Pour Prather
47        dtbon=dtvr/n
48       
49       return
50       end
51
52
53
54
55
56
57
Note: See TracBrowser for help on using the repository browser.