Ignore:
Timestamp:
Apr 29, 2022, 6:37:44 PM (2 years ago)
Author:
lfalletti
Message:

Fixed bug for coupling with reprobus

  • rm of a call Init_chem_rep_phys that was set twice
  • add of hybrid coordinates in reprobus outputs (for CMIP6 dr2xml)
  • bug fix to take into account H2Orep tracer name
File:
1 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/misc/readTracFiles_mod.f90

    r4138 r4140  
    14031403  CHARACTER(LEN=maxlen), ALLOCATABLE :: tmp(:)
    14041404  INTEGER :: ix, ip, it, nt
    1405   LOGICAL :: lerr
     1405  LOGICAL :: lerr, lH2O
    14061406  newName = oldName
    14071407  IF(PRESENT(iPhase)) iPhase = 1                                               !--- Default: gaseous phase
    1408   IF(oldName(1:MIN(3,LEN_TRIM(oldName))) /= 'H2O') RETURN                      !--- Not a water descendant
     1408  lH2O=.FALSE.
     1409  IF(LEN_TRIM(oldName)>3) THEN
     1410    lH2O = oldName(1:3)=='H2O' .AND. INDEX(old_phases,oldName(4:4))/=0     !---H2O<phase>*, with phase=="v", "l", "i" or "r"
     1411    IF(LEN_TRIM(oldName) > 4) lH2O = lH2O .AND. oldName(5:5)=='_'          !---H2O<phase>_*, with phase=="v", "l", "i" or "r"
     1412  END IF
     1413  IF(.NOT.lH2O) RETURN
    14091414  IF(LEN_TRIM(oldName)>3) THEN; IF(INDEX(old_Phases,oldName(4:4))==0) RETURN; END IF
    14101415
Note: See TracChangeset for help on using the changeset viewer.