Ignore:
Timestamp:
Apr 15, 2014, 4:57:48 PM (11 years ago)
Author:
aslmd
Message:

LMDZ.MARS. If not major, a quite important commit.

  1. No more SAVE,ALLOCATABLE arrays outside modules.

This is important to solve the nesting conundrum in MESOSCALE.
And overall this is good for the harmony of the universe.
(Joke apart, this is good for any interfacing task. And compliant with a F90 spirit).
Note that bit-to-bit compatibility of results in debug mode was checked.

  1. inifis is split in two : phys_state_var_init + conf_phys

This makes interfacing with MESOSCALE more transparent.
This is also clearer for LMDZ.MARS.
Before, inifis has two very different tasks to do.

  1. a bit of cleaning as far as modules and saves are concerned

Point 1

  • Removed SAVE,ALLOCATABLE arrays from

physiq, aeropacity, updatereffrad, soil

and put those in

dimradmars_mod, surfdat_h, tracer_mod, comsoil_h

and changed accordingly the initialization subroutines associated to each module.
Allocating these arrays is thus done at initialization.

Point 2

  • Created a subroutine phys_state_var_init which does all the allocation / initialization work for modules. This was previously done in inifis.
  • Replaced inifis which was then (after the previous modification) just about reading callphys.def and setting a few constants by conf_phys. This mimics the new LMDZ terminology (cf. LMDZ.VENUS for instance)
  • Bye bye inifis.

Point 3

  • Removed comdiurn and put everything in comgeomfi
  • Created a turb_mod module for turbulence variables (e.g. l0 in yamada4)
  • dryness had nothing to do in tracer_h, put it in surfdat_h (like watercaptag)
  • topdust0 does not need to be SAVE in aeropacity. better use sinlat.
  • emisref does not need to be SAVE in newcondens. made it automatic array.
  • Removed useless co2ice argument in initracer.
File:
1 edited

Legend:

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

    r1208 r1224  
    88     &                       igcm_ccn_number, nuice_ref, varian,
    99     &                       ref_r0, igcm_dust_submicron
     10       USE dimradmars_mod, only: nueffdust
    1011       IMPLICIT NONE
    1112c=======================================================================
     
    8485      REAL tauscaling(ngrid)         ! Convertion factor for qccn and Nccn
    8586
    86       LOGICAL,SAVE :: firstcall=.true. , firstcall_alloc=.true.
     87      LOGICAL,SAVE :: firstcall=.true.
    8788
    8889      REAL CBRT
    8990      EXTERNAL CBRT
    90 
    91       REAL,SAVE,ALLOCATABLE :: nueffdust(:,:) ! Dust effective variance
    92 
    93 c     Local saved variables:
    94 c     ---------------------
    95 
    96         if (firstcall_alloc) then
    97           !allocate local saved arrays:
    98           allocate(nueffdust(ngrid,nlayer))
    99           firstcall_alloc=.false.
    100         endif
    10191
    10292c==================================================================
Note: See TracChangeset for help on using the changeset viewer.