Changeset 4140


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
Location:
LMDZ6/trunk/libf
Files:
3 edited

Legend:

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

    r4127 r4140  
    173173  END IF
    174174
    175   IF (type_trac == 'repr') THEN
    176 #ifdef REPROBUS
    177      CALL Init_chem_rep_phys(klon_omp,nbp_lev)
    178 #endif
    179   END IF
    180 
    181175!$OMP END PARALLEL
    182176
  • 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
  • LMDZ6/trunk/libf/phylmd/physiq_mod.F90

    r4127 r4140  
    50995099    ENDIF
    51005100
     5101    IF (type_trac == 'repr') THEN
     5102#ifdef REPROBUS
     5103        CALL coord_hyb_rep(paprs, pplay, aps, bps, ap, bp, cell_area)
     5104#endif
     5105    ENDIF
    51015106
    51025107    !
Note: See TracChangeset for help on using the changeset viewer.