Changeset 997 for LMDZ4/trunk/libf/dyn3d
- Timestamp:
- Sep 9, 2008, 4:31:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/dyn3d/limit_netcdf.F
r995 r997 1177 1177 ENDDO 1178 1178 c 1179 c Ecriture de fichier limit toujours en simple precision, NF_FLOAT1180 1179 PRINT*, 'Ecriture du fichier limit' 1181 1180 c … … 1190 1189 dims(2) = ntim 1191 1190 c 1191 #ifdef NC_DOUBLE 1192 ierr = NF_DEF_VAR (nid, "TEMPS", NF_DOUBLE, 1,ntim, id_tim) 1193 #else 1192 1194 ierr = NF_DEF_VAR (nid, "TEMPS", NF_FLOAT, 1,ntim, id_tim) 1195 #endif 1193 1196 ierr = NF_PUT_ATT_TEXT (nid, id_tim, "title", 17, 1194 1197 . "Jour dans l annee") 1195 1198 IF (newlmt) THEN 1196 1199 c 1200 #ifdef NC_DOUBLE 1201 ierr = NF_DEF_VAR (nid, "FOCE", NF_DOUBLE, 2,dims, id_FOCE) 1202 #else 1197 1203 ierr = NF_DEF_VAR (nid, "FOCE", NF_FLOAT, 2,dims, id_FOCE) 1204 #endif 1198 1205 ierr = NF_PUT_ATT_TEXT (nid, id_FOCE, "title", 14, 1199 1206 . "Fraction ocean") 1200 1207 c 1208 #ifdef NC_DOUBLE 1209 ierr = NF_DEF_VAR (nid, "FSIC", NF_DOUBLE, 2,dims, id_FSIC) 1210 #else 1201 1211 ierr = NF_DEF_VAR (nid, "FSIC", NF_FLOAT, 2,dims, id_FSIC) 1212 #endif 1202 1213 ierr = NF_PUT_ATT_TEXT (nid, id_FSIC, "title", 21, 1203 1214 . "Fraction glace de mer") 1204 1215 c 1216 #ifdef NC_DOUBLE 1217 ierr = NF_DEF_VAR (nid, "FTER", NF_DOUBLE, 2,dims, id_FTER) 1218 #else 1205 1219 ierr = NF_DEF_VAR (nid, "FTER", NF_FLOAT, 2,dims, id_FTER) 1220 #endif 1206 1221 ierr = NF_PUT_ATT_TEXT (nid, id_FTER, "title", 14, 1207 1222 . "Fraction terre") 1208 1223 c 1224 #ifdef NC_DOUBLE 1225 ierr = NF_DEF_VAR (nid, "FLIC", NF_DOUBLE, 2,dims, id_FLIC) 1226 #else 1209 1227 ierr = NF_DEF_VAR (nid, "FLIC", NF_FLOAT, 2,dims, id_FLIC) 1228 #endif 1210 1229 ierr = NF_PUT_ATT_TEXT (nid, id_FLIC, "title", 17, 1211 1230 . "Fraction land ice") 1212 1231 c 1213 1232 ELSE 1233 #ifdef NC_DOUBLE 1234 ierr = NF_DEF_VAR (nid, "NAT", NF_DOUBLE, 2,dims, id_NAT) 1235 #else 1214 1236 ierr = NF_DEF_VAR (nid, "NAT", NF_FLOAT, 2,dims, id_NAT) 1237 #endif 1215 1238 ierr = NF_PUT_ATT_TEXT (nid, id_NAT, "title", 23, 1216 1239 . "Nature du sol (0,1,2,3)") 1217 1240 ENDIF 1241 #ifdef NC_DOUBLE 1242 ierr = NF_DEF_VAR (nid, "SST", NF_DOUBLE, 2,dims, id_SST) 1243 #else 1218 1244 ierr = NF_DEF_VAR (nid, "SST", NF_FLOAT, 2,dims, id_SST) 1245 #endif 1219 1246 ierr = NF_PUT_ATT_TEXT (nid, id_SST, "title", 35, 1220 1247 . "Temperature superficielle de la mer") 1248 #ifdef NC_DOUBLE 1249 ierr = NF_DEF_VAR (nid, "BILS", NF_DOUBLE, 2,dims, id_BILS) 1250 #else 1221 1251 ierr = NF_DEF_VAR (nid, "BILS", NF_FLOAT, 2,dims, id_BILS) 1252 #endif 1222 1253 ierr = NF_PUT_ATT_TEXT (nid, id_BILS, "title", 32, 1223 1254 . "Reference flux de chaleur au sol") 1255 #ifdef NC_DOUBLE 1256 ierr = NF_DEF_VAR (nid, "ALB", NF_DOUBLE, 2,dims, id_ALB) 1257 #else 1224 1258 ierr = NF_DEF_VAR (nid, "ALB", NF_FLOAT, 2,dims, id_ALB) 1259 #endif 1225 1260 ierr = NF_PUT_ATT_TEXT (nid, id_ALB, "title", 19, 1226 1261 . "Albedo a la surface") 1262 #ifdef NC_DOUBLE 1263 ierr = NF_DEF_VAR (nid, "RUG", NF_DOUBLE, 2,dims, id_RUG) 1264 #else 1227 1265 ierr = NF_DEF_VAR (nid, "RUG", NF_FLOAT, 2,dims, id_RUG) 1266 #endif 1228 1267 ierr = NF_PUT_ATT_TEXT (nid, id_RUG, "title", 8, 1229 1268 . "Rugosite") … … 1238 1277 epais(2) = 1 1239 1278 c 1279 #ifdef NC_DOUBLE 1280 ierr = NF_PUT_VAR1_DOUBLE (nid,id_tim,k,DBLE(k)) 1281 c 1282 IF (newlmt ) THEN 1283 ierr = NF_PUT_VARA_DOUBLE (nid,id_FOCE,debut,epais 1284 $ ,pctsrf_t(1,is_oce,k)) 1285 ierr = NF_PUT_VARA_DOUBLE (nid,id_FSIC,debut,epais 1286 $ ,pctsrf_t(1,is_sic,k)) 1287 ierr = NF_PUT_VARA_DOUBLE (nid,id_FTER,debut,epais 1288 $ ,pctsrf_t(1,is_ter,k)) 1289 ierr = NF_PUT_VARA_DOUBLE (nid,id_FLIC,debut,epais 1290 $ ,pctsrf_t(1,is_lic,k)) 1291 ELSE 1292 ierr = NF_PUT_VARA_DOUBLE (nid,id_NAT,debut,epais 1293 $ ,phy_nat(1,k)) 1294 ENDIF 1295 c 1296 ierr = NF_PUT_VARA_DOUBLE (nid,id_SST,debut,epais,phy_sst(1,k)) 1297 ierr = NF_PUT_VARA_DOUBLE (nid,id_BILS,debut,epais,phy_bil(1,k)) 1298 ierr = NF_PUT_VARA_DOUBLE (nid,id_ALB,debut,epais,phy_alb(1,k)) 1299 ierr = NF_PUT_VARA_DOUBLE (nid,id_RUG,debut,epais,phy_rug(1,k)) 1300 #else 1240 1301 ierr = NF_PUT_VAR1_REAL (nid,id_tim,k,FLOAT(k)) 1241 1302 IF (newlmt ) THEN … … 1256 1317 ierr = NF_PUT_VARA_REAL (nid,id_ALB,debut,epais,phy_alb(1,k)) 1257 1318 ierr = NF_PUT_VARA_REAL (nid,id_RUG,debut,epais,phy_rug(1,k)) 1319 #endif 1258 1320 c 1259 1321 ENDDO
Note: See TracChangeset
for help on using the changeset viewer.