Changeset 1775 for trunk


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

LMDZ.MARS setting the stage for maybe fixing nesting in the LMD_MM_MARS 4. ensure arrays not allocated in read_dust_scenario if already allocated -- other changes are useful comments for subsequent developments

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

Legend:

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

    r1711 r1775  
    160160! identify tracers
    161161
     162      !! AS: firstcall OK absolute
    162163      IF (firstcall) THEN
    163164        ! identify scatterers that are dust
     
    186187
    187188c       typical profile of solsir and (1-w)^(-1):
     189c       --- purely for diagnostics and printing
    188190        msolsir(1:nlayer,1:naerkind)=0
    189191        mqextsqabs(1:nlayer,1:naerkind)=0
  • trunk/LMDZ.MARS/libf/phymars/aeroptproperties.F

    r1268 r1775  
    188188c     Creating the effective radius and variance grid
    189189c     -----------------------------------------------
     190!     AS: OK firstcall absolute
    190191      IF (firstcall) THEN
     192 
    191193c       0.0 Allocate all local saved arrays:
    192194        allocate(refftab(refftabsize,naerkind,2))
     
    241243
    242244        allocate(checkgrid(refftabsize,nuefftabsize,naerkind,2))
    243         checkgrid(1:refftabsize,1:nuefftabsize,1:naerkind,1:2) = .false.
    244245
    245246        allocate(logvratgrid(naerkind,2))
     
    249250
    250251        allocate(varyingnueff(naerkind))
     252
     253        checkgrid(1:refftabsize,1:nuefftabsize,1:naerkind,1:2) = .false.
    251254        varyingnueff(1:naerkind) = .false.
    252255
  • trunk/LMDZ.MARS/libf/phymars/nlthermeq.F

    r1266 r1775  
    3030c     with no topography location would vary, but this is only
    3131c     needed for an estimate so any point would do in that case.
     32!!    AS: can be problem w MESOSCALE nesting (ignored for the moment)
    3233         igpmax = ismax(ngrid, pplev, 1)
    3334         write(*, 10) ptrans
  • trunk/LMDZ.MARS/libf/phymars/read_dust_scenario.F90

    r1544 r1775  
    118118
    119119
    120    allocate(tautes(lonlen,latlen,timelen))
    121    allocate(lat(latlen), lon(lonlen), time(timelen))
     120   if (.not.allocated(tautes)) allocate(tautes(lonlen,latlen,timelen))
     121   if (.not.allocated(lat)) allocate(lat(latlen), lon(lonlen), time(timelen))
    122122
    123123   ! "dustop" if loading visible extinction opacity
Note: See TracChangeset for help on using the changeset viewer.