Changeset 1420 for trunk/LMDZ.GENERIC


Ignore:
Timestamp:
Apr 17, 2015, 5:40:46 PM (10 years ago)
Author:
sglmd
Message:

some clean-up: hard coded parameters removed

Location:
trunk/LMDZ.GENERIC/libf/phystd
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/LMDZ.GENERIC/libf/phystd/dsolver.F

    r253 r1420  
    66C DOUBLE PRECISION VERSION OF SOLVER
    77
    8       PARAMETER (NMAX=201)
     8!!      PARAMETER (NMAX=201)
    99      IMPLICIT REAL*8  (A-H,O-Z)
    1010      DIMENSION GAMA(NL),CP(NL),CM(NL),CPM1(NL),CMM1(NL),XK1(NL),
    1111     *          XK2(NL),E1(NL),E2(NL),E3(NL),E4(NL)
    12       DIMENSION AF(NMAX),BF(NMAX),CF(NMAX),DF(NMAX),XK(NMAX)
     12      DIMENSION AF(2*NL),BF(2*NL),CF(2*NL),DF(2*NL),XK(2*NL)
    1313C*********************************************************
    1414C* THIS SUBROUTINE SOLVES FOR THE COEFFICIENTS OF THE    *
  • trunk/LMDZ.GENERIC/libf/phystd/dtridgl.F

    r135 r1420  
    55C     DOUBLE PRECISION VERSION OF TRIDGL
    66
    7       PARAMETER (NMAX=201)
     7!!      PARAMETER (NMAX=201)
    88      IMPLICIT REAL*8  (A-H,O-Z)
    99      DIMENSION AF(L),BF(L),CF(L),DF(L),XK(L)
    10       DIMENSION AS(NMAX),DS(NMAX)
     10      DIMENSION AS(2*L),DS(2*L)
    1111
    1212C*    THIS SUBROUTINE SOLVES A SYSTEM OF TRIDIAGIONAL MATRIX
  • trunk/LMDZ.GENERIC/libf/phystd/gfluxi.F

    r1384 r1420  
    3636      implicit none
    3737
    38       INTEGER NLP
    39       PARAMETER (NLP=101) ! MUST BE LARGER THAN NLEVEL
    4038
    4139      INTEGER NLL, NLAYER, L, NW, NT, NT2
     
    4846      REAL*8  WAVEN, DW, UBARI, RSF
    4947      REAL*8  BTOP, BSURF, FMIDP(L_NLAYRAD), FMIDM(L_NLAYRAD)
    50       REAL*8  B0(NLP),B1(NLP),ALPHA(NLP),LAMDA(NLP),XK1(NLP),XK2(NLP)
    51       REAL*8  GAMA(NLP),CP(NLP),CM(NLP),CPM1(NLP),CMM1(NLP),E1(NLP)
    52       REAL*8  E2(NLP),E3(NLP),E4(NLP)
     48      REAL*8  B0(L_NLAYRAD),B1(L_NLAYRAD),ALPHA(L_NLAYRAD)
     49      REAL*8  LAMDA(L_NLAYRAD),XK1(L_NLAYRAD),XK2(L_NLAYRAD)
     50      REAL*8  GAMA(L_NLAYRAD),CP(L_NLAYRAD),CM(L_NLAYRAD)
     51      REAL*8  CPM1(L_NLAYRAD),CMM1(L_NLAYRAD),E1(L_NLAYRAD)
     52      REAL*8  E2(L_NLAYRAD),E3(L_NLAYRAD),E4(L_NLAYRAD)
    5353
    5454      REAL*8  FTOPUP, FLUXUP, FLUXDN
     
    6060C     WE GO WITH THE HEMISPHERIC CONSTANT APPROACH IN THE INFRARED
    6161 
    62 
    63       IF (NLL .GT. NLP) STOP 'PARAMETER NL TOO SMALL IN GFLUXI'
    6462
    6563      NLAYER = L_NLAYRAD
  • trunk/LMDZ.GENERIC/libf/phystd/gfluxv.F

    r253 r1420  
    4242      implicit none
    4343
    44       INTEGER NLP
    45       PARAMETER (NLP=101) ! MUST BE LARGER THAN NLEVEL
     44!!      INTEGER NLP
     45!!      PARAMETER (NLP=101) ! MUST BE LARGER THAN NLEVEL
    4646
    4747      REAL*8 EM, EP
     
    5050      REAL*8 DTDEL(L_NLAYRAD), TDEL(L_NLEVRAD)
    5151      REAL*8 FMIDP(L_NLAYRAD), FMIDM(L_NLAYRAD)
    52       REAL*8 LAMDA(NLP), ALPHA(NLP), XK1(NLP), XK2(NLP)
    53       REAL*8 G1(NLP), G2(NLP), G3(NLP), GAMA(NLP), CP(NLP), CM(NLP)
    54       REAL*8 CPM1(NLP)
    55       REAL*8 CMM1(NLP), E1(NLP), E2(NLP), E3(NLP), E4(NLP), EXPTRM(NLP)
     52      REAL*8 LAMDA(L_NLAYRAD), ALPHA(L_NLAYRAD), XK1(L_NLAYRAD)
     53      REAL*8 XK2(L_NLAYRAD),G1(L_NLAYRAD), G2(L_NLAYRAD)
     54      REAL*8 G3(L_NLAYRAD), GAMA(L_NLAYRAD),CP(L_NLAYRAD),CM(L_NLAYRAD)
     55      REAL*8 CPM1(L_NLAYRAD),CMM1(L_NLAYRAD), E1(L_NLAYRAD)
     56      REAL*8 E2(L_NLAYRAD),E3(L_NLAYRAD),E4(L_NLAYRAD),EXPTRM(L_NLAYRAD)
    5657      REAL*8 FLUXUP, FLUXDN
    5758      REAL*8 FACTOR, TAUCUMIN(L_LEVELS), TAUCUM(L_LEVELS)
Note: See TracChangeset for help on using the changeset viewer.