Ignore:
Timestamp:
May 19, 2014, 10:05:08 AM (11 years ago)
Author:
aslmd
Message:

LMDZ.MARS
IMPORTANT CHANGE

  • Remove all reference/use of nlayermx and dimphys.h
  • Made use of automatic arrays whenever arrays are needed with dimension nlayer
  • Remove lots of obsolete reference to dimensions.h
  • Converted iono.h and param_v4.h into corresponding modules

(with embedded subroutine to allocate arrays)
(no arrays allocated if thermosphere not used)

  • Deleted param.h and put contents into module param_v4_h
  • Adapted testphys1d, newstart, etc...
  • Made DATA arrays in param_read to be initialized by subroutine

fill_data_thermos in module param_v4_h

  • Optimized computations in paramfoto_compact (twice less dlog10 calculations)
  • Checked consistency before/after modification in debug mode
  • Checked performance is not impacted (same as before)
File:
1 edited

Legend:

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

    r1246 r1266  
    3939#include "dimensions.h"
    4040      integer, parameter :: ngridmx = (2+(jjm-1)*iim - 1/jjm)
    41 #include "dimphys.h"
    42 !#include "surfdat.h"
    43 !#include "comsoil.h"
    44 !#include "dimradmars.h"
    4541#include "paramet.h"
    4642#include "comconst.h"
    4743#include "comvert.h"
    4844#include "comgeom2.h"
    49 !#include "control.h"
    5045#include "logic.h"
    5146#include "description.h"
    5247#include "ener.h"
    5348#include "temps.h"
    54 !#include "lmdstd.h"
    5549#include "comdissnew.h"
    5650#include "clesph0.h"
    5751#include "serre.h"
    5852#include "netcdf.inc"
    59 !#include"advtrac.h"
    60 !#include"tracer.h"
    6153#include "datafile.h"
    6254c=======================================================================
     
    10597c variable physique
    10698c------------------
    107 !      REAL tsurf(ngridmx)      ! surface temperature
    108 !      REAL tsoil(ngridmx,nsoilmx) ! soil temperature
    109 !      REAL co2ice(ngridmx)     ! CO2 ice layer
    110 !      REAL emis(ngridmx)       ! surface emissivity
    111 !      REAL tauscaling(ngridmx) ! dust conversion factor
    11299      REAL tauscadyn(iip1,jjp1) ! dust conversion factor on the dynamics grid
    113 !      REAL,ALLOCATABLE :: qsurf(:,:)
    114 !      REAL q2(ngridmx,nlayermx+1)
    115 !      REAL rnaturfi(ngridmx)
    116100      real alb(iip1,jjp1),albfi(ngridmx) ! albedos
    117101      real ith(iip1,jjp1,nsoilmx),ithfi(ngridmx,nsoilmx) ! thermal inertia (3D)
     
    203187! allocate arrays
    204188      allocate(q(iip1,jjp1,llm,nqtot))
    205 !      allocate(qsurf(ngridmx,nqtot)) ! done in ini_surfdat_h
    206189      allocate(coefvmr(nqtot))
    207190
Note: See TracChangeset for help on using the changeset viewer.