Ignore:
Timestamp:
Jul 22, 2024, 9:29:09 PM (4 months ago)
Author:
abarral
Message:

Replace most uses of CPP_DUST by the corresponding logical defined in lmdz_cppkeys_wrapper.F90
Convert several files from .F to .f90 to allow Dust to compile w/o rrtm/ecrad
Create lmdz_yoerad.f90
(lint) Remove "!" on otherwise empty line

Location:
LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/callphysiq_mod.F90

    r5082 r5099  
    1 !
     1
    22! $Id: $
    3 !
     3
    44MODULE callphysiq_mod
    55
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/ce0l.F90

    r5088 r5099  
    11PROGRAM ce0l
    2 !
     2
    33!-------------------------------------------------------------------------------
    44! Purpose: Initial states and boundary conditions files creation:
     
    2121  USE etat0phys,      ONLY: etat0phys_netcdf
    2222  USE limit,          ONLY: limit_netcdf
    23   USE netcdf,         ONLY: NF90_OPEN, NF90_NOWRITE, NF90_CLOSE, NF90_NOERR,    &
    24          NF90_INQUIRE_DIMENSION, nf90_inq_dimid, NF90_INQ_VARID, NF90_GET_VAR
     23  USE netcdf,         ONLY: NF90_OPEN, NF90_NOWRITE, NF90_CLOSE, nf90_noerr,    &
     24         nf90_inquire_dimension, nf90_inq_dimid, NF90_INQ_VARID, nf90_get_var
    2525  USE infotrac,       ONLY: init_infotrac
    2626  USE dimphy,         ONLY: klon
     
    154154! weights to ensure ocean fractions are the same for atmosphere and ocean.
    155155!*******************************************************************************
    156   IF(NF90_OPEN("o2a.nc", NF90_NOWRITE, nid_o2a)==NF90_NOERR) THEN
     156  IF(NF90_OPEN("o2a.nc", NF90_NOWRITE, nid_o2a)==nf90_noerr) THEN
    157157    iret=NF90_CLOSE(nid_o2a)
    158158    WRITE(lunout,*)'BEWARE !! Ocean mask "o2a.nc" file found'
     
    188188    masque(iip1 ,:)=masque(1,:)
    189189    DEALLOCATE(ocemask)
    190   ELSE IF(NF90_OPEN("startphy0.nc", NF90_NOWRITE, nid_sta)==NF90_NOERR) THEN
     190  ELSE IF(NF90_OPEN("startphy0.nc", NF90_NOWRITE, nid_sta)==nf90_noerr) THEN
    191191    WRITE(lunout,*)'BEWARE !! File "startphy0.nc" found.'
    192192    WRITE(lunout,*)'Getting the land mask from a previous run.'
    193193    iret=nf90_inq_dimid(nid_sta,'points_physiques',nid_nph)
    194     iret=NF90_INQUIRE_DIMENSION(nid_sta,nid_nph,len=nphys)
     194    iret=nf90_inquire_dimension(nid_sta,nid_nph,len=nphys)
    195195    IF(nphys/=klon) THEN
    196196      WRITE(lunout,*)'Mismatching dimensions for land mask'
     
    201201    ALLOCATE(masktmp(klon))
    202202    iret=NF90_INQ_VARID(nid_sta,'masque',nid_msk)
    203     iret=NF90_GET_VAR(nid_sta,nid_msk,masktmp)
     203    iret=nf90_get_var(nid_sta,nid_msk,masktmp)
    204204    iret=NF90_CLOSE(nid_sta)
    205205    CALL gr_fi_dyn(1,klon,iip1,jjp1,masktmp,masque)
     
    253253
    254254END PROGRAM ce0l
    255 !
    256 !-------------------------------------------------------------------------------
     255
     256!-------------------------------------------------------------------------------
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/etat0dyn_netcdf.F90

    r5091 r5099  
    11MODULE etat0dyn
    2 !
     2
    33!*******************************************************************************
    44! Purpose: Create dynamical initial state using atmospheric fields from a
     
    66!-------------------------------------------------------------------------------
    77! Comments:
    8 !
     8
    99!    *  This module is designed to work for Earth (and with ioipsl)
    10 !
     10
    1111!    *  etat0dyn_netcdf routine can access to NetCDF data through the following
    1212!  routine (to be called after restget):
    1313!    CALL startget_dyn3d(varname, lon_in,  lat_in, pls, workvar,&
    1414!                          champ, lon_in2, lat_in2)
    15 !
     15
    1616!    *  Variables should have the following names in the NetCDF files:
    1717!            'U'      : East ward wind              (in "ECDYN.nc")
     
    2020!            'R'      : Relative humidity           (in "ECDYN.nc")
    2121!            'RELIEF' : High resolution orography   (in "Relief.nc")
    22 !
     22
    2323!    * The land mask and corresponding weights can be:
    2424!      1) already known (in particular if etat0dyn has been called before) ;
     
    2828!         File name: "o2a.nc"  ;  variable name: "OceMask"
    2929!      3) computed from topography file "Relief.nc" for forced runs.
    30 !
     30
    3131!   *   There is a big mess with the longitude size. Should it be iml or iml+1 ?
    3232!  I have chosen to use the iml+1 as an argument to this routine and we declare
     
    5959
    6060!-------------------------------------------------------------------------------
    61 !
     61
    6262SUBROUTINE etat0dyn_netcdf(masque, phis)
    63 !
     63
    6464!-------------------------------------------------------------------------------
    6565! Purpose: Create dynamical initial states.
     
    194194
    195195END SUBROUTINE etat0dyn_netcdf
    196 !
    197 !-------------------------------------------------------------------------------
    198 
    199 
    200 !-------------------------------------------------------------------------------
    201 !
     196
     197!-------------------------------------------------------------------------------
     198
     199
     200!-------------------------------------------------------------------------------
     201
    202202SUBROUTINE startget_dyn3d(var, lon_in,  lat_in,  pls,  workvar,&
    203203                        champ, lon_in2, lat_in2)
     
    279279
    280280END SUBROUTINE startget_dyn3d
    281 !
    282 !-------------------------------------------------------------------------------
    283 
    284 
    285 !-------------------------------------------------------------------------------
    286 !
     281
     282!-------------------------------------------------------------------------------
     283
     284
     285!-------------------------------------------------------------------------------
     286
    287287SUBROUTINE start_init_dyn(lon_in,lat_in,lon_in2,lat_in2,zs,psol)
    288 !
     288
    289289!-------------------------------------------------------------------------------
    290290  IMPLICIT NONE
     
    343343
    344344!-------------------------------------------------------------------------------
    345 !
     345
    346346SUBROUTINE get_var_dyn(title,field)
    347 !
     347
    348348!-------------------------------------------------------------------------------
    349349  USE conf_dat_m, ONLY: conf_dat2d
     
    375375
    376376END SUBROUTINE get_var_dyn
    377 !
     377
    378378!-------------------------------------------------------------------------------
    379379
    380380END SUBROUTINE start_init_dyn
    381 !
    382 !-------------------------------------------------------------------------------
    383 
    384 
    385 !-------------------------------------------------------------------------------
    386 !
     381
     382!-------------------------------------------------------------------------------
     383
     384
     385!-------------------------------------------------------------------------------
     386
    387387SUBROUTINE start_inter_3d(var,lon_in,lat_in,lon_in2,lat_in2,pls_in,var3d)
    388 !
     388
    389389!-------------------------------------------------------------------------------
    390390  USE conf_dat_m, ONLY: conf_dat3d
     
    461461
    462462END SUBROUTINE start_inter_3d
    463 !
    464 !-------------------------------------------------------------------------------
    465 
    466 
    467 !-------------------------------------------------------------------------------
    468 !
     463
     464!-------------------------------------------------------------------------------
     465
     466
     467!-------------------------------------------------------------------------------
     468
    469469SUBROUTINE interp_startvar(nam,ibeg,lon,lat,vari,lon1,lat1,lon2,lat2,varo)
    470 !
     470
    471471!-------------------------------------------------------------------------------
    472472  USE inter_barxy_m, ONLY: inter_barxy
     
    502502
    503503END SUBROUTINE interp_startvar
    504 !
     504
    505505!-------------------------------------------------------------------------------
    506506
    507507END MODULE etat0dyn
    508 !
    509 !*******************************************************************************
     508
     509!*******************************************************************************
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/etat0phys_netcdf.F90

    r4801 r5099  
    1 !
     1
    22! $Id$
    3 !
     3
    44MODULE etat0phys
    5 !
     5
    66!*******************************************************************************
    77! Purpose: Create physical initial state using atmospheric fields from a
     
    99!-------------------------------------------------------------------------------
    1010! Comments:
    11 !
     11
    1212!    *  This module is designed to work for Earth (and with ioipsl)
    13 !
     13
    1414!    *  etat0phys_netcdf routine can access to NetCDF data through subroutines:
    1515!         "start_init_phys" for variables contained in file "ECPHY.nc":
     
    1818!         "start_init_orog" for variables contained in file "Relief.nc":
    1919!            'RELIEF' : High resolution orography
    20 !
     20
    2121!    * The land mask and corresponding weights can be:
    2222!      1) computed using the ocean mask from the ocean model (to ensure ocean
     
    2424!         File name: "o2a.nc"  ;  variable name: "OceMask"
    2525!      2) computed from topography file "Relief.nc" for forced runs.
    26 !
     26
    2727!    * Allowed values for read_climoz flag are 0, 1 and 2:
    2828!      0: do not read an ozone climatology
     
    7676
    7777!-------------------------------------------------------------------------------
    78 !
     78
    7979SUBROUTINE etat0phys_netcdf(masque, phis)
    80 !
     80
    8181!-------------------------------------------------------------------------------
    8282! Purpose: Creates initial states
     
    295295
    296296END SUBROUTINE etat0phys_netcdf
    297 !
    298 !-------------------------------------------------------------------------------
    299 
    300 
    301 !-------------------------------------------------------------------------------
    302 !
     297
     298!-------------------------------------------------------------------------------
     299
     300
     301!-------------------------------------------------------------------------------
     302
    303303SUBROUTINE start_init_orog(lon_in,lat_in,phis,masque)
    304 !
     304
    305305!===============================================================================
    306306! Comment:
     
    391391
    392392END SUBROUTINE start_init_orog
    393 !
    394 !-------------------------------------------------------------------------------
    395 
    396 
    397 !-------------------------------------------------------------------------------
    398 !
     393
     394!-------------------------------------------------------------------------------
     395
     396
     397!-------------------------------------------------------------------------------
     398
    399399SUBROUTINE start_init_phys(lon_in,lat_in,phis)
    400 !
     400
    401401!===============================================================================
    402402! Purpose:   Compute tsol and qsol, knowing phis.
     
    449449
    450450!-------------------------------------------------------------------------------
    451 !
     451
    452452SUBROUTINE get_var_phys(title,field)
    453 !
     453
    454454!-------------------------------------------------------------------------------
    455455  IMPLICIT NONE
     
    474474
    475475END SUBROUTINE get_var_phys
    476 !
    477 !-------------------------------------------------------------------------------
    478 !
     476
     477!-------------------------------------------------------------------------------
     478
    479479END SUBROUTINE start_init_phys
    480 !
    481 !-------------------------------------------------------------------------------
    482 
    483 
    484 !-------------------------------------------------------------------------------
    485 !
     480
     481!-------------------------------------------------------------------------------
     482
     483
     484!-------------------------------------------------------------------------------
     485
    486486SUBROUTINE interp_startvar(nam,ibeg,lon,lat,vari,lon2,lat2,varo)
    487 !
     487
    488488!-------------------------------------------------------------------------------
    489489  USE inter_barxy_m, ONLY: inter_barxy
     
    518518
    519519END SUBROUTINE interp_startvar
    520 !
    521 !-------------------------------------------------------------------------------
    522 !
     520
     521!-------------------------------------------------------------------------------
     522
    523523!*******************************************************************************
    524524
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/iniphysiq_mod.F90

    r5098 r5099  
    1 !
     1
    22! $Id$
    3 !
     3
    44MODULE iniphysiq_mod
    55
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/init_ssrf_m.F90

    r5087 r5099  
    11MODULE init_ssrf_m
    2 !
     2
    33!*******************************************************************************
    44
     
    2424
    2525!-------------------------------------------------------------------------------
    26 !
     26
    2727SUBROUTINE start_init_subsurf(known_mask)
    28 !
     28
    2929!-------------------------------------------------------------------------------
    3030! Purpose: Subsurfaces initialization.
     
    141141
    142142END SUBROUTINE start_init_subsurf
    143 !
     143
    144144!-------------------------------------------------------------------------------
    145145
    146146END MODULE init_ssrf_m
    147 !
     147
    148148!*******************************************************************************
  • LMDZ6/branches/Amaury_dev/libf/dynphy_lonlat/phylmd/limit_netcdf.F90

    r5090 r5099  
    11MODULE limit
    2 !
     2
    33!*******************************************************************************
    44! Author : L. Fairhead, 27/01/94
     
    4949
    5050!-------------------------------------------------------------------------------
    51 !
     51
    5252SUBROUTINE limit_netcdf(masque, phis, extrap)
    53 !
     53
    5454!-------------------------------------------------------------------------------
    5555! Author : L. Fairhead, 27/01/94
     
    7373  USE netcdf,             ONLY: NF90_OPEN,    NF90_CREATE,  NF90_CLOSE,        &
    7474                  NF90_DEF_DIM, NF90_DEF_VAR, NF90_PUT_VAR, NF90_PUT_ATT,      &
    75                   NF90_NOERR,   NF90_NOWRITE,  NF90_GLOBAL,       &
     75                  nf90_noerr,   NF90_NOWRITE,  NF90_GLOBAL,       &
    7676                  NF90_CLOBBER, NF90_ENDDEF,  NF90_UNLIMITED, NF90_FLOAT,      &
    7777                  NF90_64BIT_OFFSET
     
    138138! Open file only to test if available
    139139  DO ix_sic=1,SIZE(fsic)
    140      IF ( NF90_OPEN(TRIM(fsic(ix_sic)),NF90_NOWRITE,nid)==NF90_NOERR ) THEN
     140     IF ( NF90_OPEN(TRIM(fsic(ix_sic)),NF90_NOWRITE,nid)==nf90_noerr ) THEN
    141141        icefile=fsic(ix_sic); varname=vsic(ix_sic); EXIT
    142142     END IF
     
    197197! Open file only to test if available
    198198  DO ix_sst=1,SIZE(fsst)
    199      IF ( NF90_OPEN(TRIM(fsst(ix_sst)),NF90_NOWRITE,nid)==NF90_NOERR ) THEN
     199     IF ( NF90_OPEN(TRIM(fsst(ix_sst)),NF90_NOWRITE,nid)==nf90_noerr ) THEN
    200200       sstfile=fsst(ix_sst); varname=vsst(ix_sst); EXIT
    201201     END IF
     
    305305
    306306!===============================================================================
    307 !
     307
    308308  CONTAINS
    309 !
     309
    310310!===============================================================================
    311311
    312312
    313313!-------------------------------------------------------------------------------
    314 !
     314
    315315SUBROUTINE get_2Dfield(fnam, varname, mode, ndays, champo, flag, mask)
    316 !
     316
    317317!-----------------------------------------------------------------------------
    318318! Comments:
     
    323323!-----------------------------------------------------------------------------
    324324  USE netcdf, ONLY: NF90_OPEN, NF90_INQ_VARID, NF90_INQUIRE_VARIABLE, &
    325        NF90_CLOSE, nf90_inq_dimid, NF90_INQUIRE_DIMENSION, NF90_GET_VAR, &
     325       NF90_CLOSE, nf90_inq_dimid, nf90_inquire_dimension, nf90_get_var, &
    326326       NF90_GET_ATT
    327327  USE pchsp_95_m, only: pchsp_95
     
    399399
    400400!--- Longitude
    401   CALL ncerr(NF90_INQUIRE_DIMENSION(ncid, dids(1), name=dnam, len=imdep),fnam)
     401  CALL ncerr(nf90_inquire_dimension(ncid, dids(1), name=dnam, len=imdep),fnam)
    402402  ALLOCATE(dlon_ini(imdep), dlon(imdep))
    403403  CALL ncerr(NF90_INQ_VARID(ncid, dnam, varid), fnam)
    404   CALL ncerr(NF90_GET_VAR(ncid, varid, dlon_ini), fnam)
     404  CALL ncerr(nf90_get_var(ncid, varid, dlon_ini), fnam)
    405405  CALL msg(5,'variable '//TRIM(dnam)//' dimension ', imdep)
    406406
    407407!--- Latitude
    408   CALL ncerr(NF90_INQUIRE_DIMENSION(ncid, dids(2), name=dnam, len=jmdep),fnam)
     408  CALL ncerr(nf90_inquire_dimension(ncid, dids(2), name=dnam, len=jmdep),fnam)
    409409  ALLOCATE(dlat_ini(jmdep), dlat(jmdep))
    410410  CALL ncerr(NF90_INQ_VARID(ncid, dnam, varid), fnam)
    411   CALL ncerr(NF90_GET_VAR(ncid, varid, dlat_ini), fnam)
     411  CALL ncerr(nf90_get_var(ncid, varid, dlat_ini), fnam)
    412412  CALL msg(5,'variable '//TRIM(dnam)//' dimension ', jmdep)
    413413
    414414!--- Time (variable is not needed - it is rebuilt - but calendar is)
    415   CALL ncerr(NF90_INQUIRE_DIMENSION(ncid, dids(3), name=dnam, len=lmdep), fnam)
     415  CALL ncerr(nf90_inquire_dimension(ncid, dids(3), name=dnam, len=lmdep), fnam)
    416416  ALLOCATE(timeyear(lmdep+2))
    417417  CALL ncerr(NF90_INQ_VARID(ncid, dnam, varid), fnam)
    418418  cal_in=' '
    419   IF(NF90_GET_ATT(ncid, varid, 'calendar', cal_in)/=NF90_NOERR) THEN
     419  IF(NF90_GET_ATT(ncid, varid, 'calendar', cal_in)/=nf90_noerr) THEN
    420420    SELECT CASE(mode)
    421421      CASE('RUG', 'ALB'); cal_in='360_day'
     
    451451  CALL ncerr(NF90_INQ_VARID(ncid, varname, varid), fnam)
    452452  DO l=1, lmdep
    453     CALL ncerr(NF90_GET_VAR(ncid,varid,champ,[1,1,l],[imdep,jmdep,1]),fnam)
     453    CALL ncerr(nf90_get_var(ncid,varid,champ,[1,1,l],[imdep,jmdep,1]),fnam)
    454454    CALL conf_dat2d(title, dlon_ini, dlat_ini, dlon, dlat, champ, .TRUE.)
    455455
     
    459459      !--- DETERMINE THE UNIT: READ FROM FILE OR ASSUMED USING FIELD VALUES
    460460      ierr=NF90_GET_ATT(ncid, varid, 'units', units)
    461       IF(ierr==NF90_NOERR) THEN !--- ATTRIBUTE "units" FOUND IN THE FILE
     461      IF(ierr==nf90_noerr) THEN !--- ATTRIBUTE "units" FOUND IN THE FILE
    462462        CALL strclean(units)
    463463        IF(mode=='SIC'.AND.is_in(units,Perc)) units="%"
     
    472472      END IF
    473473      CALL msg(0,'INPUT FILE '//TRIM(title)//' UNIT IS: "'//TRIM(units)//'".')
    474       IF(ierr/=NF90_NOERR) CALL msg(0,'WARNING ! UNIT TO BE CHECKED ! '      &
     474      IF(ierr/=nf90_noerr) CALL msg(0,'WARNING ! UNIT TO BE CHECKED ! '      &
    475475        //'No "units" attribute, so only based on the fields values.')
    476476
     
    509509!--- FIRST RECORD: LAST ONE OF PREVIOUS YEAR (CURRENT YEAR IF UNAVAILABLE)
    510510  fnam_m=fnam(1:idx)//'_m.nc'
    511   IF(NF90_OPEN(fnam_m,NF90_NOWRITE,ncid)==NF90_NOERR) THEN
     511  IF(NF90_OPEN(fnam_m,NF90_NOWRITE,ncid)==nf90_noerr) THEN
    512512    CALL msg(0,'Reading previous year file ("'//TRIM(fnam_m)//'") last record for '//TRIM(title))
    513513    CALL ncerr(NF90_INQ_VARID(ncid, varname, varid),fnam_m)
    514514    CALL ncerr(NF90_INQUIRE_VARIABLE(ncid, varid, dimids=dids),fnam_m)
    515     CALL ncerr(NF90_INQUIRE_DIMENSION(ncid, dids(3), len=l), fnam_m)
    516     CALL ncerr(NF90_GET_VAR(ncid,varid,champ,[1,1,l],[imdep,jmdep,1]),fnam_m)
     515    CALL ncerr(nf90_inquire_dimension(ncid, dids(3), len=l), fnam_m)
     516    CALL ncerr(nf90_get_var(ncid,varid,champ,[1,1,l],[imdep,jmdep,1]),fnam_m)
    517517    CALL ncerr(NF90_CLOSE(ncid), fnam_m)
    518518    CALL conf_dat2d(title, dlon_ini, dlat_ini, dlon, dlat, champ, .TRUE.)
     
    532532!--- LAST RECORD: FIRST ONE OF NEXT YEAR (CURRENT YEAR IF UNAVAILABLE)
    533533  fnam_p=fnam(1:idx)//'_p.nc'
    534   IF(NF90_OPEN(fnam_p,NF90_NOWRITE,ncid)==NF90_NOERR) THEN
     534  IF(NF90_OPEN(fnam_p,NF90_NOWRITE,ncid)==nf90_noerr) THEN
    535535    CALL msg(0,'Reading next year file ("'//TRIM(fnam_p)//'") first record for '//TRIM(title))
    536536    CALL ncerr(NF90_INQ_VARID(ncid, varname, varid),fnam_p)
    537     CALL ncerr(NF90_GET_VAR(ncid,varid,champ,[1,1,1],[imdep,jmdep,1]),fnam_p)
     537    CALL ncerr(nf90_get_var(ncid,varid,champ,[1,1,1],[imdep,jmdep,1]),fnam_p)
    538538    CALL ncerr(NF90_CLOSE(ncid), fnam_p)
    539539    CALL conf_dat2d(title, dlon_ini, dlat_ini, dlon, dlat, champ, .TRUE.)
     
    641641
    642642END SUBROUTINE get_2Dfield
    643 !
    644 !-------------------------------------------------------------------------------
    645 
    646 
    647 !-------------------------------------------------------------------------------
    648 !
     643
     644!-------------------------------------------------------------------------------
     645
     646
     647!-------------------------------------------------------------------------------
     648
    649649SUBROUTINE start_init_orog0(lon_in,lat_in,phis,masque)
    650 !
     650
    651651!-------------------------------------------------------------------------------
    652652  USE grid_noro_m, ONLY: grid_noro0
     
    704704
    705705END SUBROUTINE start_init_orog0
    706 !
    707 !-------------------------------------------------------------------------------
    708 
    709 
    710 !-------------------------------------------------------------------------------
    711 !
     706
     707!-------------------------------------------------------------------------------
     708
     709
     710!-------------------------------------------------------------------------------
     711
    712712SUBROUTINE msg(lev,str1,i,str2)
    713 !
     713
    714714!-------------------------------------------------------------------------------
    715715! Arguments:
     
    730730
    731731END SUBROUTINE msg
    732 !
    733 !-------------------------------------------------------------------------------
    734 
    735 
    736 !-------------------------------------------------------------------------------
    737 !
     732
     733!-------------------------------------------------------------------------------
     734
     735
     736!-------------------------------------------------------------------------------
     737
    738738SUBROUTINE ncerr(ncres,fnam)
    739 !
     739
    740740!-------------------------------------------------------------------------------
    741741! Purpose: NetCDF errors handling.
    742742!-------------------------------------------------------------------------------
    743   USE netcdf, ONLY : NF90_NOERR, NF90_STRERROR
     743  USE netcdf, ONLY : nf90_noerr, NF90_STRERROR
    744744  IMPLICIT NONE
    745745!-------------------------------------------------------------------------------
     
    748748  CHARACTER(LEN=*), INTENT(IN) :: fnam
    749749!-------------------------------------------------------------------------------
    750   IF(ncres/=NF90_NOERR) THEN
     750  IF(ncres/=nf90_noerr) THEN
    751751    WRITE(lunout,*)'Problem with file '//TRIM(fnam)//' in routine limit_netcdf.'
    752752    CALL abort_physic('limit_netcdf',NF90_STRERROR(ncres),1)
     
    754754
    755755END SUBROUTINE ncerr
    756 !
    757 !-------------------------------------------------------------------------------
    758 
    759 
    760 !-------------------------------------------------------------------------------
    761 !
     756
     757!-------------------------------------------------------------------------------
     758
     759
     760!-------------------------------------------------------------------------------
     761
    762762SUBROUTINE strclean(s)
    763 !
     763
    764764!-------------------------------------------------------------------------------
    765765  IMPLICIT NONE
     
    776776
    777777END SUBROUTINE strclean
    778 !
    779 !-------------------------------------------------------------------------------
    780 
    781 
    782 !-------------------------------------------------------------------------------
    783 !
     778
     779!-------------------------------------------------------------------------------
     780
     781
     782!-------------------------------------------------------------------------------
     783
    784784FUNCTION is_in(s1,s2) RESULT(res)
    785 !
     785
    786786!-------------------------------------------------------------------------------
    787787  IMPLICIT NONE
     
    796796
    797797END FUNCTION is_in
    798 !
    799 !-------------------------------------------------------------------------------
    800 
    801 
    802 !-------------------------------------------------------------------------------
    803 !
     798
     799!-------------------------------------------------------------------------------
     800
     801
     802!-------------------------------------------------------------------------------
     803
    804804ELEMENTAL FUNCTION strLow(s) RESULT(res)
    805 !
     805
    806806!-------------------------------------------------------------------------------
    807807  IMPLICIT NONE
     
    822822
    823823END FUNCTION strLow
    824 !
     824
    825825!-------------------------------------------------------------------------------
    826826
     
    830830
    831831END MODULE limit
    832 !
     832
    833833!*******************************************************************************
    834834
Note: See TracChangeset for help on using the changeset viewer.