Changeset 3168 for LMDZ6/trunk/libf


Ignore:
Timestamp:
Jan 30, 2018, 2:08:24 PM (7 years ago)
Author:
dcugnet
Message:

Fix to restore compilation with gfortran + single length for strings.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dynphy_lonlat/phylmd/limit_netcdf.F90

    r3163 r3168  
    4343           ,'degsC         ','degrees_C     ','degreesC      ','degs_C        '&
    4444           ,'degree_Celsius','celsius       '], &
    45   Perc(2)=['%              ','percent       '], &
    46   Frac(2)=['1.0            ','1             ']
     45  Perc(2) =['%             ','percent       '], &
     46  Frac(2) =['1.0           ','1             ']
    4747
    4848CONTAINS
     
    9292  include "comgeom2.h"
    9393
    94 !--- INPUT NETCDF FILES NAMES --------------------------------------------------
    95   CHARACTER(LEN=20) :: icefile, sstfile, dumstr, fnam
    96   CHARACTER(LEN=10) :: varname
     94!--- INPUT NETCDF FILES AND VARIABLES NAMES ------------------------------------
     95  CHARACTER(LEN=ns) :: icefile, sstfile, fnam, varname
    9796
    9897!--- OUTPUT VARIABLES FOR NETCDF FILE ------------------------------------------
    99   REAL               :: fi_ice(klon), verif(klon)
     98  REAL               :: fi_ice(klon)
    10099  REAL, POINTER      :: phy_rug(:,:)=>NULL(), phy_ice(:,:)=>NULL()
    101100  REAL, POINTER      :: phy_sst(:,:)=>NULL(), phy_alb(:,:)=>NULL()
     
    104103
    105104!--- VARIABLES FOR OUTPUT FILE WRITING -----------------------------------------
    106   INTEGER :: ierr, nid, ndim, ntim, k, dims(2), ix_sic, ix_sst
     105  INTEGER :: nid, ndim, ntim, k, dims(2), ix_sic, ix_sst
    107106  INTEGER :: id_tim,  id_SST,  id_BILS, id_RUG, id_ALB
    108107  INTEGER :: id_FOCE, id_FSIC, id_FTER, id_FLIC, varid_longitude, varid_latitude
    109108  INTEGER :: NF90_FORMAT
    110109  INTEGER :: ndays                   !--- Depending on the output calendar
    111   CHARACTER(LEN=256) :: str
     110  CHARACTER(LEN=ns) :: str
    112111
    113112!--- INITIALIZATIONS -----------------------------------------------------------
     
    342341! Arguments:
    343342  CHARACTER(LEN=*),  INTENT(IN)     :: fnam     ! NetCDF file name
    344   CHARACTER(LEN=10), INTENT(IN)     :: varname  ! NetCDF variable name
    345   CHARACTER(LEN=3),  INTENT(IN)     :: mode     ! RUG, SIC, SST or ALB
     343  CHARACTER(LEN=*), INTENT(IN)     :: varname  ! NetCDF variable name
     344  CHARACTER(LEN=*),  INTENT(IN)     :: mode     ! RUG, SIC, SST or ALB
    346345  INTEGER,           INTENT(IN)     :: ndays    ! current year number of days
    347346  REAL,    POINTER,  DIMENSION(:, :) :: champo  ! output field = f(t)
     
    352351!--- NetCDF
    353352  INTEGER           :: ncid, varid        ! NetCDF identifiers
    354   CHARACTER(LEN=30) :: dnam               ! dimension name
     353  CHARACTER(LEN=ns) :: dnam               ! dimension name
    355354!--- dimensions
    356355  INTEGER           :: dids(4)            ! NetCDF dimensions identifiers
     
    366365  REAL, ALLOCATABLE :: champan(:,:,:)
    367366!--- input files
    368   CHARACTER(LEN=20) :: fnam_m, fnam_p     ! previous/next files names
    369   CHARACTER(LEN=20) :: cal_in             ! calendar
    370   CHARACTER(LEN=20) :: units              ! attribute "units" in sic/sst file
     367  CHARACTER(LEN=ns) :: fnam_m, fnam_p     ! previous/next files names
     368  CHARACTER(LEN=ns) :: cal_in             ! calendar
     369  CHARACTER(LEN=ns) :: units              ! attribute "units" in sic/sst file
    371370  INTEGER           :: ndays_in           ! number of days
    372371  REAL              :: value              ! mean/max value near equator
    373372!--- misc
    374   INTEGER           :: i, j, k, l, ll     ! loop counters
     373  INTEGER           :: i, j, k, l         ! loop counters
    375374  REAL, ALLOCATABLE :: work(:,:)          ! used for extrapolation
    376   CHARACTER(LEN=128):: title, mess        ! for messages
     375  CHARACTER(LEN=ns) :: title, mess        ! for messages
    377376  LOGICAL           :: is_bcs             ! flag for BCS data
    378377  LOGICAL           :: extrp              ! flag for extrapolation
     378  LOGICAL           :: ll
    379379  REAL              :: chmin, chmax, timeday, al
    380380  INTEGER ierr, idx
     
    666666!-------------------------------------------------------------------------------
    667667! Local variables:
    668   CHARACTER(LEN=256) :: modname="start_init_orog0"
     668  CHARACTER(LEN=ns) :: modname="start_init_orog0"
    669669  INTEGER            :: fid, llm_tmp,ttm_tmp, iml,jml, iml_rel,jml_rel, itau(1)
    670670  REAL               :: lev(1), date, dt, deg2rad
Note: See TracChangeset for help on using the changeset viewer.