Changeset 4138


Ignore:
Timestamp:
Apr 26, 2022, 10:19:58 AM (2 years ago)
Author:
acozic
Message:

fixed two bug for coupling with inca
1- allow the possibility of having tracers names with H2O in it (like H2O2)
2- allow the possibility of having other water tracers in inca

Location:
LMDZ6/trunk/libf
Files:
2 edited

Legend:

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

    r4126 r4138  
    14071407  IF(PRESENT(iPhase)) iPhase = 1                                               !--- Default: gaseous phase
    14081408  IF(oldName(1:MIN(3,LEN_TRIM(oldName))) /= 'H2O') RETURN                      !--- Not a water descendant
     1409  IF(LEN_TRIM(oldName)>3) THEN; IF(INDEX(old_Phases,oldName(4:4))==0) RETURN; END IF
     1410
     1411
    14091412  lerr = strParse(oldName, '_', tmp, n=nt)
    14101413  ip = strIdx([('H2O'//old_phases(ip:ip), ip=1, nphases)], tmp(1))             !--- Phase index (/=0 if any)
  • LMDZ6/trunk/libf/phylmd/infotrac_phy.F90

    r4124 r4138  
    185185   conv_flg  = conv_flg_
    186186   nqtot     = SIZE(tracers_)
    187    nqo       = COUNT(delPhase(tracers%name)=='H2O' .AND. tracers%iGeneration==0)
     187   nqo       = COUNT(delPhase(tracers%name)=='H2O' .AND. tracers%iGeneration==0 .AND. tracers%component=='lmdz')
    188188   nbtr      = SIZE(conv_flg)
    189189   nbIso     = SIZE(isotopes_)
Note: See TracChangeset for help on using the changeset viewer.