Ignore:
Timestamp:
Apr 17, 2016, 10:23:21 PM (9 years ago)
Author:
emillour
Message:

Mars GCM:

  • fix for 1D in writediagfi to enable writing at "ecritphy" rate.
  • removed iniprint.h from phymars/dyn1d since it is in "misc"
  • Some code cleanup in anticipation of future updates:
    • changed variable names in comgeomphy.F90: give them more explicit names: rlond => longitude , rlatd => latitude, airephy => cell_area, cuphy => dx , cvphy => dy
    • removed long(), lati() and area() from comgeomfi_h.F90, use longitude(), latitude() and cell_are() from comgeomphy.F90 instead

EM

File:
1 edited

Legend:

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

    r1532 r1541  
    4040!=================================================================
    4141      use surfdat_h, only: phisfi
    42       use comgeomphy, only: airephy
     42      use comgeomphy, only: cell_area
    4343      use time_phylmdz_mod, only: ecritphy, day_step, iphysiq, day_ini
    4444      USE mod_phys_lmdz_para, only : is_parallel, is_mpi_root,
     
    118118!Sortie des variables au rythme voulu
    119119
    120       irythme = int(ecritphy) ! sortie au rythme de ecritphy
    121 !     irythme = iconser  ! sortie au rythme des variables de controle
    122 !     irythme = iphysiq  ! sortie a tous les pas physique
    123 !     irythme = iecri*day_step ! sortie au rythme des fichiers histoires
    124 !     irythme = periodav*day_step ! sortie au rythme des fichiers histmoy
     120      irythme = int(ecritphy) ! output rate set by ecritphy
    125121
    126122!***************************************************************
     
    189185          ! Gather phisfi() geopotential on physics grid
    190186          call Gather(phisfi,phisfi_glo)
    191           ! Gather airephy() mesh area on physics grid
    192           call Gather(airephy,areafi_glo)
     187          ! Gather cell_area() mesh area on physics grid
     188          call Gather(cell_area,areafi_glo)
    193189#else
    194190         phisfi_glo(:)=phisfi(:)
    195          areafi_glo(:)=airephy(:)
     191         areafi_glo(:)=cell_area(:)
    196192#endif
    197193
     
    260256
    261257      endif ! if (firstnom.eq.'1234567890')
    262 
    263       if (klon_glo.eq.1) then
    264         ! in testphys1d, for the 1d version of the GCM, iphysiq and irythme
    265         ! are undefined; so set them to 1
    266         iphysiq=1
    267         irythme=1
    268       endif
    269258
    270259! Increment time index 'zitau' if it is the "fist call" (at given time level)
Note: See TracChangeset for help on using the changeset viewer.