Changeset 2299 for LMDZ5/trunk/libf/dyn3d/dynetat0.f90
- Timestamp:
- Jun 15, 2015, 8:48:31 PM (9 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
LMDZ5/trunk/libf/dyn3d/dynetat0.f90
r2298 r2299 109 109 CALL get_var2("cv" ,cv) 110 110 CALL get_var2("aire" ,aire) 111 CALL get_var2("phisinit",phis)112 111 var="temps" 113 112 IF(NF90_INQ_VARID(fID,var,vID)/=NF90_NoErr) THEN … … 117 116 END IF 118 117 CALL err(NF90_GET_VAR(fID,vID,time),"get",var) 118 CALL get_var2("phisinit",phis) 119 119 CALL get_var3("ucov",ucov) 120 120 CALL get_var3("vcov",vcov) … … 126 126 DO iq=1,nqtot 127 127 var=tname(iq) 128 IF(NF90_INQ_VARID(fID,var,vID)/=NF90_NoErr) THEN 129 WRITE(lunout,*)TRIM(modname)//": Tracer <"//TRIM(var)//"> is missing" 130 WRITE(lunout,*)" It is hence initialized to zero" 131 q(:,:,:,iq)=0. 132 ELSE 133 CALL err(NF90_GET_VAR(fID,vID,q(:,:,:,iq)),"get",var) 128 IF(NF90_INQ_VARID(fID,var,vID)==NF90_NoErr) THEN 129 CALL err(NF90_GET_VAR(fID,vID,q(:,:,:,iq)),"get",var); CYCLE 130 END IF 131 WRITE(lunout,*)TRIM(modname)//": Tracer <"//TRIM(var)//"> is missing" 132 WRITE(lunout,*)" It is hence initialized to zero" 133 q(:,:,:,iq)=0. 134 !--- CRisi: for isotops, theoretical initialization using very simplified 135 ! Rayleigh distillation las. 136 IF(ok_isotopes.AND.iso_num(iq)>0) THEN 137 IF(zone_num(iq)==0) q(:,:,:,iq)=q(:,:,:,iqpere(iq))*tnat(iso_num(iq)) & 138 & *(q(:,:,:,iqpere(iq))/30.e-3)**(alpha_ideal(iso_num(iq))-1) 139 IF(zone_num(iq)==1) q(:,:,:,iq)=q(:,:,:,iqiso(iso_indnum(iq),phase_num(iq))) 134 140 END IF 135 141 END DO … … 158 164 SUBROUTINE get_var1(var,v) 159 165 CHARACTER(LEN=*), INTENT(IN) :: var 160 #ifdef NC_DOUBLE161 DOUBLE PRECISION, INTENT(OUT) :: v(:)162 #else163 166 REAL, INTENT(OUT) :: v(:) 164 #endif165 167 CALL err(NF90_INQ_VARID(fID,var,vID),"inq",var) 166 168 CALL err(NF90_GET_VAR(fID,vID,v),"get",var) … … 170 172 SUBROUTINE get_var2(var,v) 171 173 CHARACTER(LEN=*), INTENT(IN) :: var 172 #ifdef NC_DOUBLE173 DOUBLE PRECISION, INTENT(OUT) :: v(:,:)174 #else175 174 REAL, INTENT(OUT) :: v(:,:) 176 #endif177 175 CALL err(NF90_INQ_VARID(fID,var,vID),"inq",var) 178 176 CALL err(NF90_GET_VAR(fID,vID,v),"get",var) … … 182 180 SUBROUTINE get_var3(var,v) 183 181 CHARACTER(LEN=*), INTENT(IN) :: var 184 #ifdef NC_DOUBLE185 DOUBLE PRECISION, INTENT(OUT) :: v(:,:,:)186 #else187 182 REAL, INTENT(OUT) :: v(:,:,:) 188 #endif189 183 CALL err(NF90_INQ_VARID(fID,var,vID),"inq",var) 190 184 CALL err(NF90_GET_VAR(fID,vID,v),"get",var)
Note: See TracChangeset
for help on using the changeset viewer.