Ignore:
Timestamp:
Sep 23, 2013, 9:56:47 AM (11 years ago)
Author:
emillour
Message:

Mars GCM:

  • IMPORTANT CHANGE: Removed all reference/use of ngridmx (dimphys.h) in routines (necessary prerequisite to using parallel dynamics); in most cases this just means adding 'ngrid' as routine argument, and making local saved variables allocatable (and allocated at first call). In the process, had to convert many *.h files to equivalent modules: yomaer.h => yomaer_h.F90 , surfdat.h => surfdat_h.F90 , comsaison.h => comsaison_h.F90 , yomlw.h => yomlw_h.F90 , comdiurn.h => comdiurn_h.F90 , dimradmars.h => dimradmars_mod.F90 , comgeomfi.h => comgeomfi_h.F90, comsoil.h => comsoil_h.F90 , slope.h => slope_mod.F90
  • Also updated EOF routines, everything is now in eofdump_mod.F90
  • Removed unused routine lectfux.F (in dyn3d)

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.MARS/libf/phymars/dustdevil.F

    r1036 r1047  
    33
    44      use tracer_mod, only: alpha_devil
     5      use surfdat_h, only: z0_default
    56      IMPLICIT NONE
    67
     
    2829c   -------------
    2930
    30 #include "dimensions.h"
    31 #include "dimphys.h"
     31!#include "dimensions.h"
     32!#include "dimphys.h"
    3233#include "comcstfi.h"     
    3334c#include "comconst.h"        ! TEMPORAIRE AVEC ANLDEVIL !!!!
    34 #include "surfdat.h"
    35 #include "comgeomfi.h"
     35!#include "surfdat.h"
     36!#include "comgeomfi.h"
    3637!#include "tracer.h"
    3738c   arguments:
     
    6263
    6364
    64       REAL devila(ngridmx)
    65       integer ltop(ngridmx)
     65      REAL devila(ngrid)
     66      integer ltop(ngrid)
    6667      real b,rho,Fs,wind
    6768
     
    7778
    7879c   TEMPORAIRE AVEC ANLDEVIL : *************
    79 c        real b_diag(ngridmx)
    80 c       real localtime(ngridmx)
     80c        real b_diag(ngrid)
     81c       real localtime(ngrid)
    8182c       common/temporaire/localtime
    82 c      real ztop(ngridmx),magwind(ngridmx),t1(ngridmx)
     83c      real ztop(ngrid),magwind(ngrid),t1(ngrid)
    8384c      real rcp ,cpp
    8485c      rcp = kappa
     
    9596        write(*,*) 'In dustdevil :'
    9697        write(*,*) '    q2top= ',q2top,'     seuil= ', seuil
    97 c       un petit test de coherence:
    98          IF(ngrid.NE.ngridmx) THEN
    99             PRINT*,'STOP dans coefdifv'
    100             PRINT*,'probleme de dimensions :'
    101             PRINT*,'ngrid  =',ngrid
    102             PRINT*,'ngridmx  =',ngridmx
    103             STOP
    104          ENDIF
    10598
    10699c A rough estimation of the horizontal drag coefficient Cd
     
    218211c     TEMPORAIRE AVEC ANLDEVIL:
    219212c     IF (ngrid.gt.1) THEN
    220 c      do ig=2,ngridmx-1
     213c      do ig=2,ngrid-1
    221214c       write(77,88) lati(ig)*180./pi,localtime(ig),
    222215c    &        -12.*log(pplev(ig,ltop(ig))/pplev(ig,1)),
     
    226219c88    format (f7.3,1x,f7.3,1x,f6.3,1x,f6.4,1x,f7.4,1x,
    227220c    &        f7.3,1x,f7.3,1x,f9.3)
    228 c      do ig=1,ngridmx
     221c      do ig=1,ngrid
    229222c       ztop(ig) = -12.*log(pplev(ig,ltop(ig))/pplev(ig,1))
    230223c       magwind(ig) = sqrt(pu(ig,1)**2+pv(ig,1)**2)
     
    232225c      end do
    233226
    234 c       call WRITEDIAGFI(ngridmx,'dqs_dev','dqs devil',
     227c       call WRITEDIAGFI(ngrid,'dqs_dev','dqs devil',
    235228c    &               'kg.m-2.s-1',2,pdqs_dev)
    236 c       call WRITEDIAGFI(ngridmx,'wind','wind',
     229c       call WRITEDIAGFI(ngrid,'wind','wind',
    237230c    &               'm.s-1',2,magwind)
    238 c       call WRITEDIAGFI(ngridmx,'ztop','top pbl',
     231c       call WRITEDIAGFI(ngrid,'ztop','top pbl',
    239232c    &               'km',2,ztop)
    240 c       call WRITEDIAGFI(ngridmx,'tsurf','tsurf',
     233c       call WRITEDIAGFI(ngrid,'tsurf','tsurf',
    241234c    &               'K',2,ptsurf)
    242 c       call WRITEDIAGFI(ngridmx,'T1','T(1)',
     235c       call WRITEDIAGFI(ngrid,'T1','T(1)',
    243236c    &               'K',2,t1)
    244 c       call WRITEDIAGFI(ngridmx,'b','b',
     237c       call WRITEDIAGFI(ngrid,'b','b',
    245238c    &               ' ',2,b_diag)
    246239c     END If
Note: See TracChangeset for help on using the changeset viewer.