Ignore:
Timestamp:
Nov 10, 2015, 9:51:52 AM (9 years ago)
Author:
Ehouarn Millour
Message:

Fix some minor anomalies spotted by the xlf compiler:

  • infotrac : wrongly giving integer values to logicals
  • surf_ocean_mod and yamada_c : should be a space between "stop" and message; but avoid using stop, use abort_physic routine instead.
  • readchlorophyll: using isnan() is not standard; compare the variable to itself instead (will return .false. if NaN).

While at it, also added some missing "only" clauses when using modules.

EM

File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ5/trunk/libf/dyn3d_common/infotrac.F90

    r2372 r2391  
    5959
    6060  SUBROUTINE infotrac_init
    61     USE control_mod
     61    USE control_mod, ONLY: planet_type, config_inca
    6262#ifdef REPROBUS
    6363    USE CHEM_REP, ONLY : Init_chem_rep_trac
     
    276276             ! Y-a-t-il 1 ou 2 noms de traceurs? -> On regarde s'il y a un
    277277             ! espace ou pas au milieu de la chaine.
    278              continu=1
    279              nouveau_traceurdef=0
     278             continu=.true.
     279             nouveau_traceurdef=.false.
    280280             iiq=1
    281281             do while (continu)
    282282                if (tchaine(iiq:iiq).eq.' ') then
    283                   nouveau_traceurdef=1
    284                   continu=0
     283                  nouveau_traceurdef=.true.
     284                  continu=.false.
    285285                else if (iiq.lt.LEN_TRIM(tchaine)) then
    286286                  iiq=iiq+1
    287287                else
    288                   continu=0     
     288                  continu=.false.
    289289                endif
    290290             enddo
Note: See TracChangeset for help on using the changeset viewer.