source: LMDZ4/branches/LMDZ4V5.0-dev/libf/dyn3d/adaptdt.F

Last change on this file was 1299, checked in by Laurent Fairhead, 14 years ago

Nettoyage general pour se rapprocher des normes et éviter des erreurs a la
compilation:

  • tous les FLOAT() sont remplacés par des REAL()
  • tous les STOP dans phylmd sont remplacés par des appels à abort_gcm
  • le common control défini dans le fichier control.h est remplacé par le module control_mod pour éviter des messages sur l'alignement des variables dans les déclarations
  • des $Header$ remplacés par des $Id$ pour svn

Quelques remplacements à faire ont pu m'échapper


General cleanup of the code to try and adhere to norms and to prevent some
compilation errors:

  • all FLOAT() instructions have been replaced by REAL() instructions
  • all STOP instructions in phylmd have been replaced by calls to abort_gcm
  • the common block control defined in the control.h file has been replaced by the control_mod to prevent compilation warnings on the alignement of declared variables
  • $Header$ replaced by $Id$ for svn

Some changes which should have been made might have escaped me

  • 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 1299 2010-01-20 14:27:21Z lebasn $
3!
4      subroutine adaptdt(nadv,dtbon,n,pbaru,
5     c                   masse)
6
7      USE control_mod
8      IMPLICIT NONE
9
10#include "dimensions.h"
11c#include "paramr2.h"
12#include "paramet.h"
13#include "comconst.h"
14#include "comdissip.h"
15#include "comvert.h"
16#include "comgeom2.h"
17#include "logic.h"
18#include "temps.h"
19#include "ener.h"
20#include "description.h"
21
22c----------------------------------------------------------
23c     Arguments
24c----------------------------------------------------------
25      INTEGER n,nadv
26      REAL dtbon
27      REAL pbaru(iip1,jjp1,llm)
28      REAL masse(iip1,jjp1,llm)
29c----------------------------------------------------------   
30c     Local
31c----------------------------------------------------------
32      INTEGER i,j,l
33      REAL CFLmax,aaa,bbb
34     
35        CFLmax=0.
36        do l=1,llm
37         do j=2,jjm
38          do i=1,iim
39             aaa=pbaru(i,j,l)*dtvr/masse(i,j,l)
40             CFLmax=max(CFLmax,aaa)
41             bbb=-pbaru(i,j,l)*dtvr/masse(i+1,j,l)
42             CFLmax=max(CFLmax,bbb)
43          enddo
44         enddo
45        enddo             
46        n=int(CFLmax)+1
47c pour reproduire cas VL du code qui appele x,y,z,y,x
48c        if (nadv.eq.30) n=n/2   ! Pour Prather
49        dtbon=dtvr/n
50       
51       return
52       end
53
54
55
56
57
58
59
Note: See TracBrowser for help on using the repository browser.