Ignore:
Timestamp:
Jul 2, 2025, 12:00:08 PM (3 days ago)
Author:
dcugnet
Message:
  • Use REAL(KIND=REAL32) and REAL(KIND=REAL64) Iinstead of REAL and DOUBLE PRECISION

to avoid ambiguity problems in generic procedure when reals are promoted to doubles.

  • generic "num2str" replaces "str2int", "str2real", "str2dble" and "str2bool" functions.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d_common/infotrac.f90

    r5487 r5748  
    33MODULE infotrac
    44
    5    USE       strings_mod, ONLY: msg, maxlen, cat, dispTable, int2str, bool2str, strStack, strParse, strCount, strIdx
     5   USE       strings_mod, ONLY: msg, maxlen, cat, dispTable, num2str, strStack, strParse, strCount, strIdx
    66   USE readTracFiles_mod, ONLY: trac_type, readTracersFiles, tracers,  addPhase,  addKey, iH2O,  &
    77       isoSelect,  indexUpdate, isot_type, testTracersFiles, isotope,  delPhase,  getKey, tran0, &
     
    250250   IF( nqtot /= nqtrue ) THEN
    251251      CALL msg('The choice of advection scheme for one or more tracers makes it necessary to add tracers')
    252       CALL msg('The number of true tracers is '//TRIM(int2str(nqtrue)))
    253       CALL msg('The total number of tracers needed is '//TRIM(int2str(nqtot)))
     252      CALL msg('The number of true tracers is '//TRIM(num2str(nqtrue)))
     253      CALL msg('The total number of tracers needed is '//TRIM(num2str(nqtot)))
    254254   END IF
    255255
     
    313313      ig  = t1%iGeneration
    314314      nam = t1%name
    315       val = 'iadv='//TRIM(int2str(iad))
     315      val = 'iadv='//TRIM(num2str(iad))
    316316
    317317      !--- ONLY TESTED VALUES FOR TRACERS FOR NOW:               iadv = 14, 10 (and 0 for non-transported tracers)
     
    344344   !=== DISPLAY THE RESULTS
    345345   IF(.NOT..TRUE.) RETURN
    346    CALL msg('nqo    = '//TRIM(int2str(nqo)),    modname)
    347    CALL msg('nbtr   = '//TRIM(int2str(nbtr)),   modname)
    348    CALL msg('nqtrue = '//TRIM(int2str(nqtrue)), modname)
    349    CALL msg('nqtot  = '//TRIM(int2str(nqtot)),  modname)
    350    CALL msg('niso   = '//TRIM(int2str(niso)),   modname)
    351    CALL msg('ntiso  = '//TRIM(int2str(ntiso)),  modname)
    352    CALL msg('nqCO2  = '//TRIM(int2str(nqCO2)),  modname, CPPKEY_INCA)
    353    CALL msg('nqINCA = '//TRIM(int2str(nqINCA)), modname, CPPKEY_INCA)
     346   CALL msg('nqo    = '//TRIM(num2str(nqo)),    modname)
     347   CALL msg('nbtr   = '//TRIM(num2str(nbtr)),   modname)
     348   CALL msg('nqtrue = '//TRIM(num2str(nqtrue)), modname)
     349   CALL msg('nqtot  = '//TRIM(num2str(nqtot)),  modname)
     350   CALL msg('niso   = '//TRIM(num2str(niso)),   modname)
     351   CALL msg('ntiso  = '//TRIM(num2str(ntiso)),  modname)
     352   CALL msg('nqCO2  = '//TRIM(num2str(nqCO2)),  modname, CPPKEY_INCA)
     353   CALL msg('nqINCA = '//TRIM(num2str(nqINCA)), modname, CPPKEY_INCA)
    354354   t => tracers
    355355   CALL msg('Information stored in '//TRIM(modname)//': ', modname)
Note: See TracChangeset for help on using the changeset viewer.