Ignore:
Timestamp:
Aug 1, 2011, 12:27:23 PM (13 years ago)
Author:
aslmd
Message:

MESOSCALE: corrected a problem of passing an integer as a real between module_lmd_driver and inifis. it was apparently not a problem but it is better to avoid this.

Location:
trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/mars_lmd/libf/phymars/inifis.F

    r235 r250  
    8787      INTEGER ig,ierr
    8888
    89       INTEGER wecri_phys, wappel_phys
     89      INTEGER wecri_phys
     90      REAL wappel_phys
    9091 
    9192      EXTERNAL iniorbit,orbite
     
    526527c Opportunity is taken to fill ecri_phys as well
    527528c*****************************************************
    528         dtphys=wdt*float(wappel_phys)
     529        dtphys=wdt*wappel_phys
    529530        print*,'Physical timestep (s) ',dtphys
    530531        ecri_phys=8.e18  !! a dummy low frequency
  • trunk/MESOSCALE/LMD_MM_MARS/SRC/WRFV2/phys/module_lmd_driver.F

    r226 r250  
    223223   INTEGER :: sponge_top,relax,ips,ipe,jps,jpe,kps,kpe
    224224   REAL :: elaps, ptimestep
    225    INTEGER :: wappel_phys, wday_ini, test, test2
     225   INTEGER :: wday_ini, test, test2
     226   REAL :: wappel_phys
    226227   LOGICAL :: flag_LES
    227228
     
    327328!----------------------------!
    328329wday_ini = JULDAY - 1      !! GCM convention
    329 wappel_phys = int(RADT)
    330 ptimestep = dt*float(wappel_phys)     ! physical timestep (s)
     330wappel_phys = RADT
     331ptimestep = dt*wappel_phys            ! physical timestep (s)
    331332ngrid=(ipe-ips+1)*(jpe-jps+1)         ! size of the horizontal grid: ngridmx = wiim * wjjm
    332333nlayer = kpe-kps+1                    ! number of vertical layers: nlayermx
     
    393394! what is done for the other steps of simulation  !
    394395!-------------------------------------------------!
    395 IF (wappel_phys .gt. 0) THEN
     396IF (wappel_phys .gt. 0.) THEN
    396397firstcall = .false.
    397 test = MODULO(itimestep-1,wappel_phys) ! WRF time is integrated time (itimestep=1 at the end of first step)
    398                                        ! -- same strategy as diagfi in the LMD GCM
     398test = MODULO(itimestep-1,int(wappel_phys)) ! WRF time is integrated time (itimestep=1 at the end of first step)
     399                                            ! -- same strategy as diagfi in the LMD GCM
     400                                            ! -- arguments of modulo must be of the same kind (here: integers)
    399401ELSE
    400402firstcall = .false.
     
    10861088!! PHYSIQ !!
    10871089!!********!!
    1088 call_physics : IF (wappel_phys .ne. 0) THEN
     1090call_physics : IF (wappel_phys .ne. 0.) THEN
    10891091
    10901092!-------------------------------------------------------------------------------!
Note: See TracChangeset for help on using the changeset viewer.