Changeset 4265 for LMDZ6/trunk/libf/dyn3d
- Timestamp:
- Sep 21, 2022, 9:58:03 AM (2 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ6/trunk/libf/dyn3d/dynetat0.F90
r4193 r4265 42 42 INTEGER :: iq, fID, vID, idecal, iqParent, iName, iZone, iPhase 43 43 REAL :: time, tab_cntrl(length) !--- RUN PARAMS TABLE 44 LOGICAL :: lOldHNO3 44 45 !------------------------------------------------------------------------------- 45 46 modname="dynetat0" … … 127 128 128 129 !--- Tracers 130 lOldHNO3=.FALSE. 131 #ifdef REPROBUS 132 !--- Old convention: HNO3 = g+l and HNO3_g = g ; new convention: HNO3tot = g+l and HNO3 = g 133 lOldHNO3 = NF90_INQ_VARID(fID,var,vID), "inq", 'HNO3tot') /= NF90_NoErr 134 #endif 129 135 DO iq=1,nqtot 130 136 var = tracers(iq)%name 131 137 oldVar = new2oldName(var) 132 138 !-------------------------------------------------------------------------------------------------------------------------- 133 IF(NF90_INQ_VARID(fID, var, vID) == NF90_NoErr ) THEN!=== REGULAR CASE139 IF(NF90_INQ_VARID(fID, var, vID) == NF90_NoErr .AND. .NOT.lOldHNO3) THEN !=== REGULAR CASE 134 140 CALL err(NF90_GET_VAR(fID,vID,q(:,:,:,iq)),"get",var) 135 141 !-------------------------------------------------------------------------------------------------------------------------- … … 137 143 CALL msg('Tracer <'//TRIM(var)//'> is missing => initialized to <'//TRIM(oldVar)//'>', modname) 138 144 CALL err(NF90_GET_VAR(fID,vID,q(:,:,:,iq)),"get",oldVar) 145 !-------------------------------------------------------------------------------------------------------------------------- 146 #ifdef REPROBUS 147 ELSE IF(NF90_INQ_VARID(fID, 'HNO3_g', vID) == NF90_NoErr .AND. lOldHNO3.AND.var=='HNO3') THEN 148 CALL msg('Tracer <HNO3_g> is used for <HNO3> (old convention)', modname) !=== REPROBUS: HNO3_g INSTEAD OF HNO3 149 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 CALL msg('Tracer <HNO3> is used for <HNO3tot> (old convention)', modname) !=== REPROBUS: HNO3 INSTEAD OF HNO3tot 152 CALL err(NF90_GET_VAR(fID,vID,q(:,:,:,iq)),"get",var) 153 #endif 139 154 !-------------------------------------------------------------------------------------------------------------------------- 140 155 #ifdef INCA
Note: See TracChangeset
for help on using the changeset viewer.