Changeset 4266


Ignore:
Timestamp:
Sep 21, 2022, 10:16:20 AM (2 years ago)
Author:
dcugnet
Message:

Fix for reprobus

Location:
LMDZ6/trunk/libf
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • LMDZ6/trunk/libf/dyn3d/dynetat0.F90

    r4265 r4266  
    136136    var = tracers(iq)%name
    137137    oldVar = new2oldName(var)
     138    lOldHNO3 = lOldHNO3 .AND. (var == 'HNO3' .OR. var == 'HNO3_g')
    138139    !--------------------------------------------------------------------------------------------------------------------------
    139140    IF(NF90_INQ_VARID(fID, var, vID) == NF90_NoErr .AND. .NOT.lOldHNO3) THEN             !=== REGULAR CASE
     
    145146    !--------------------------------------------------------------------------------------------------------------------------
    146147#ifdef REPROBUS
    147     ELSE IF(NF90_INQ_VARID(fID, 'HNO3_g', vID) == NF90_NoErr .AND. lOldHNO3.AND.var=='HNO3') THEN
     148    ELSE IF(NF90_INQ_VARID(fID, 'HNO3_g', vID) == NF90_NoErr .AND. lOldHNO3 .AND. var == 'HNO3'   ) THEN
    148149      CALL msg('Tracer <HNO3_g> is used for <HNO3> (old convention)', modname)           !=== REPROBUS: HNO3_g INSTEAD OF HNO3
    149150      CALL err(NF90_GET_VAR(fID,vID,q(:,:,:,iq)),"get",var)
    150     ELSE IF(NF90_INQ_VARID(fID, 'HNO3', vID)lOldHNO3 .AND. var == 'HNO3tot') THEN
     151    ELSE IF(NF90_INQ_VARID(fID, 'HNO3',   vID) == NF90_NoErr .AND. lOldHNO3 .AND. var == 'HNO3tot') THEN
    151152      CALL msg('Tracer <HNO3> is used for <HNO3tot> (old convention)', modname)          !=== REPROBUS: HNO3 INSTEAD OF HNO3tot
    152153      CALL err(NF90_GET_VAR(fID,vID,q(:,:,:,iq)),"get",var)
  • LMDZ6/trunk/libf/dyn3dmem/dynetat0_loc.F90

    r4265 r4266  
    160160    var = tracers(iq)%name
    161161    oldVar = new2oldName(var)
     162    lOldHNO3 = lOldHNO3 .AND. (var == 'HNO3' .OR. var == 'HNO3_g')
    162163    !--------------------------------------------------------------------------------------------------------------------------
    163164    IF(NF90_INQ_VARID(fID, var, vID) == NF90_NoErr .AND. .NOT.lOldHNO3) THEN             !=== REGULAR CASE
Note: See TracChangeset for help on using the changeset viewer.