Ignore:
Timestamp:
Sep 7, 2015, 5:50:29 PM (10 years ago)
Author:
dcugnet
Message:

In etat0dyn: removed few useless lines: "masque" is always known because etat0dyn is called after etat0phys.
In grid_atob: shape error in routine fine2coarse now fixed: "msk" argument and local variable mask must have the dimensions of the output grid. Working unit of dist_sphe is no longer degree, but radian.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dynlonlat_phylonlat/phylmd/etat0dyn_netcdf.F90

    r2336 r2361  
    3636  USE ioipsl,         ONLY: flininfo, flinopen, flinget, flinclo, histclo
    3737  USE assert_eq_m,    ONLY: assert_eq
    38   USE indice_sol_mod, ONLY: epsfra
    3938  IMPLICIT NONE
    4039
     
    8786  INTEGER            :: i, j, l, ji, itau, iday
    8887  REAL               :: xpn, xps, time, phystep
    89   REAL, DIMENSION(iip1,jjp1)       :: psol, masque_tmp
     88  REAL, DIMENSION(iip1,jjp1)       :: psol
    9089  REAL, DIMENSION(iip1,jjp1,llm+1) :: p3d
    9190  REAL, DIMENSION(iip1,jjp1,llm)   :: uvent, t3d, tpot, qsat, qd
     
    101100
    102101  deg2rad = pi/180.0
    103 
    104 ! Compute ground geopotential and possibly the mask.
    105 !*******************************************************************************
    106   masque_tmp(:,:)=masque(:,:)
    107   WRITE(fmt,"(i4,'i1)')")iip1 ; fmt='('//ADJUSTL(fmt)
    108   IF(ALL(masque==-99999.)) THEN                         !--- KEEP NEW MASK
    109     masque=masque_tmp
    110     IF(prt_level>=1) THEN
    111       WRITE(lunout,*)'BUILT MASK :'
    112       WRITE(lunout,fmt) NINT(masque)
    113     END IF
    114     WHERE(   masque(:,:)<EPSFRA) masque(:,:)=0.
    115     WHERE(1.-masque(:,:)<EPSFRA) masque(:,:)=1.
    116   END IF
    117102
    118103! Compute psol AND tsol, knowing phis.
Note: See TracChangeset for help on using the changeset viewer.