Changeset 1774 for trunk


Ignore:
Timestamp:
Aug 27, 2017, 8:55:34 AM (7 years ago)
Author:
aslmd
Message:

LMDZ.MARS setting the stage for maybe fixing nesting in the LMD_MM_MARS 3. moving out domain-dependent computations from firstcalls. these are few lines with simple computations, no impact on runtime.

Location:
trunk/LMDZ.MARS/libf/phymars
Files:
4 edited

Legend:

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

    r1266 r1774  
    7575      INTEGER igwd,igwdim,itest(ngrid)
    7676
    77       INTEGER,SAVE :: ndomain
     77      INTEGER :: ndomain
    7878!      parameter (ndomain = (ngrid-1) / ndomainsz + 1)
    7979
     
    111111
    112112      IF (firstcall) THEN
    113         ndomain = (ngrid-1) / ndomainsz + 1
    114113
    115114         do l=1,nlayer+1
     
    131130         firstcall=.false.
    132131      END IF
     132
     133      !! AS: moved out of firstcall to allow nesting+evoluting horiz domain
     134      ndomain = (ngrid-1) / ndomainsz + 1
    133135
    134136c     Starting loop on sub-domain
  • trunk/LMDZ.MARS/libf/phymars/callradite_mod.F

    r1769 r1774  
    208208      REAL ptlev(ngrid,nlayer+1)
    209209
    210       INTEGER,SAVE :: ndomain
     210      INTEGER :: ndomain
    211211
    212212c     Thermal IR net radiative budget (W m-2)
     
    274274
    275275      IF (firstcall) THEN
    276         ! compute ndomain and allocate local saved arrays
    277         ndomain= (ngrid-1) / ndomainsz + 1
    278276
    279277c        Assign a number to the different scatterers
     
    345343!         CALL SULW ! this step is now done in ini_yomlw_h
    346344
    347          write(*,*) 'Splitting radiative calculations: ',
    348      $              ' ngrid,ndomainsz,ndomain',
    349      $                ngrid,ndomainsz,ndomain
    350345         if (ngrid .EQ. 1) then
    351346           if (ndomainsz .NE. 1) then
     
    358353           endif
    359354         endif
     355
    360356         firstcall=.false.
    361357      END IF
     358
     359! compute ndomain
     360! AS: moved out of firstcall to allow nesting+evoluting domain
     361! ------------------------------------------------------------
     362        ndomain= (ngrid-1) / ndomainsz + 1
     363        write(*,*) 'Splitting radiative calculations: ',
     364     $              ' ngrid,ndomainsz,ndomain',
     365     $                ngrid,ndomainsz,ndomain
    362366
    363367c     Computing aerosol optical properties and opacity
  • trunk/LMDZ.MARS/libf/phymars/watercloud_mod.F

    r1758 r1774  
    147147        write(*,*)"imicro = ",imicro
    148148       
    149         microtimestep = ptimestep/real(imicro)
    150         write(*,*)"Physical timestep is",ptimestep
    151         write(*,*)"Microphysics timestep is",microtimestep
    152 
    153149        firstcall=.false.
    154150      ENDIF ! of IF (firstcall)
     151
     152      !! AS: moved out of firstcall to allow nesting+evoluting timestep
     153      !!     TBD: consider possible diff imicro with domains?
     154      microtimestep = ptimestep/real(imicro)
     155      write(*,*)"Physical timestep is",ptimestep
     156      write(*,*)"Microphysics timestep is",microtimestep
     157
    155158     
    156159c-----Initialization
  • trunk/LMDZ.MARS/libf/phymars/yamada4.F

    r1266 r1774  
    122122      INTEGER i
    123123      REAL ztimestep
    124       INTEGER, SAVE :: ndt
     124      INTEGER :: ndt
    125125
    126126      nlev=nlay+1
     
    130130c.......................................................................
    131131
     132      !! firstcall: OK absolute
    132133      if(firstcall) then
    133134        ico2=0
     
    148149           enddo
    149150        endif
     151        firstcall=.false.
     152      endif !of if firstcall
     153
     154      !! AS: moved out of firstcall to allow nesting+evoluting timestep
    150155      ndt=ceiling(3840./(3699.*24./dt))
    151       firstcall=.false.
    152       endif !of if firstcall
    153156
    154157c.......................................................................
Note: See TracChangeset for help on using the changeset viewer.