Changeset 764 for LMDZ4/trunk/libf/dyn3dpar/dynredem_p.F
- Timestamp:
- Jun 4, 2007, 4:13:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/dyn3dpar/dynredem_p.F
r630 r764 147 147 c 148 148 ierr = NF_REDEF (nid) 149 cIM 220306 BEG 150 #ifdef NC_DOUBLE 151 ierr = NF_DEF_VAR (nid,"controle",NF_DOUBLE,1,idim_index,nvarid) 152 #else 149 153 ierr = NF_DEF_VAR (nid,"controle",NF_FLOAT,1,idim_index,nvarid) 154 #endif 155 cIM 220306 END 150 156 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, 151 157 . "Parametres de controle") … … 158 164 c 159 165 ierr = NF_REDEF (nid) 166 cIM 220306 BEG 167 #ifdef NC_DOUBLE 168 ierr = NF_DEF_VAR (nid,"rlonu",NF_DOUBLE,1,idim_rlonu,nvarid) 169 #else 160 170 ierr = NF_DEF_VAR (nid,"rlonu",NF_FLOAT,1,idim_rlonu,nvarid) 171 #endif 172 cIM 220306 END 161 173 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 23, 162 174 . "Longitudes des points U") … … 169 181 c 170 182 ierr = NF_REDEF (nid) 183 cIM 220306 BEG 184 #ifdef NC_DOUBLE 185 ierr = NF_DEF_VAR (nid,"rlatu",NF_DOUBLE,1,idim_rlatu,nvarid) 186 #else 171 187 ierr = NF_DEF_VAR (nid,"rlatu",NF_FLOAT,1,idim_rlatu,nvarid) 188 #endif 189 cIM 220306 END 172 190 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, 173 191 . "Latitudes des points U") … … 180 198 c 181 199 ierr = NF_REDEF (nid) 200 cIM 220306 BEG 201 #ifdef NC_DOUBLE 202 ierr = NF_DEF_VAR (nid,"rlonv",NF_DOUBLE,1,idim_rlonv,nvarid) 203 #else 182 204 ierr = NF_DEF_VAR (nid,"rlonv",NF_FLOAT,1,idim_rlonv,nvarid) 205 #endif 206 cIM 220306 END 183 207 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 23, 184 208 . "Longitudes des points V") … … 191 215 c 192 216 ierr = NF_REDEF (nid) 217 cIM 220306 BEG 218 #ifdef NC_DOUBLE 219 ierr = NF_DEF_VAR (nid,"rlatv",NF_DOUBLE,1,idim_rlatv,nvarid) 220 #else 193 221 ierr = NF_DEF_VAR (nid,"rlatv",NF_FLOAT,1,idim_rlatv,nvarid) 222 #endif 223 cIM 220306 END 194 224 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, 195 225 . "Latitudes des points V") … … 202 232 c 203 233 ierr = NF_REDEF (nid) 234 cIM 220306 BEG 235 #ifdef NC_DOUBLE 236 ierr = NF_DEF_VAR (nid,"nivsigs",NF_DOUBLE,1,idim_s,nvarid) 237 #else 204 238 ierr = NF_DEF_VAR (nid,"nivsigs",NF_FLOAT,1,idim_s,nvarid) 239 #endif 240 cIM 220306 END 205 241 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 28, 206 242 . "Numero naturel des couches s") … … 213 249 c 214 250 ierr = NF_REDEF (nid) 251 cIM 220306 BEG 252 #ifdef NC_DOUBLE 253 ierr = NF_DEF_VAR (nid,"nivsig",NF_DOUBLE,1,idim_sig,nvarid) 254 #else 215 255 ierr = NF_DEF_VAR (nid,"nivsig",NF_FLOAT,1,idim_sig,nvarid) 256 #endif 257 cIM 220306 END 216 258 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 32, 217 259 . "Numero naturel des couches sigma") … … 224 266 c 225 267 ierr = NF_REDEF (nid) 268 cIM 220306 BEG 269 #ifdef NC_DOUBLE 270 ierr = NF_DEF_VAR (nid,"ap",NF_DOUBLE,1,idim_sig,nvarid) 271 #else 226 272 ierr = NF_DEF_VAR (nid,"ap",NF_FLOAT,1,idim_sig,nvarid) 273 #endif 274 cIM 220306 END 227 275 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 26, 228 276 . "Coefficient A pour hybride") … … 235 283 c 236 284 ierr = NF_REDEF (nid) 285 cIM 220306 BEG 286 #ifdef NC_DOUBLE 287 ierr = NF_DEF_VAR (nid,"bp",NF_DOUBLE,1,idim_sig,nvarid) 288 #else 237 289 ierr = NF_DEF_VAR (nid,"bp",NF_FLOAT,1,idim_sig,nvarid) 290 #endif 291 cIM 220306 END 238 292 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 26, 239 293 . "Coefficient B pour hybride") … … 246 300 c 247 301 ierr = NF_REDEF (nid) 302 cIM 220306 BEG 303 #ifdef NC_DOUBLE 304 ierr = NF_DEF_VAR (nid,"presnivs",NF_DOUBLE,1,idim_s,nvarid) 305 #else 248 306 ierr = NF_DEF_VAR (nid,"presnivs",NF_FLOAT,1,idim_s,nvarid) 307 #endif 308 cIM 220306 END 249 309 ierr = NF_ENDDEF(nid) 250 310 #ifdef NC_DOUBLE … … 259 319 dims2(1) = idim_rlonu 260 320 dims2(2) = idim_rlatu 321 cIM 220306 BEG 322 #ifdef NC_DOUBLE 323 ierr = NF_DEF_VAR (nid,"cu",NF_DOUBLE,2,dims2,nvarid) 324 #else 261 325 ierr = NF_DEF_VAR (nid,"cu",NF_FLOAT,2,dims2,nvarid) 326 #endif 327 cIM 220306 END 262 328 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 29, 263 329 . "Coefficient de passage pour U") … … 272 338 dims2(1) = idim_rlonv 273 339 dims2(2) = idim_rlatv 340 cIM 220306 BEG 341 #ifdef NC_DOUBLE 342 ierr = NF_DEF_VAR (nid,"cv",NF_DOUBLE,2,dims2,nvarid) 343 #else 274 344 ierr = NF_DEF_VAR (nid,"cv",NF_FLOAT,2,dims2,nvarid) 345 #endif 346 cIM 220306 END 275 347 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 29, 276 348 . "Coefficient de passage pour V") … … 287 359 dims2(1) = idim_rlonv 288 360 dims2(2) = idim_rlatu 361 cIM 220306 BEG 362 #ifdef NC_DOUBLE 363 ierr = NF_DEF_VAR (nid,"aire",NF_DOUBLE,2,dims2,nvarid) 364 #else 289 365 ierr = NF_DEF_VAR (nid,"aire",NF_FLOAT,2,dims2,nvarid) 366 #endif 367 cIM 220306 END 290 368 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 22, 291 369 . "Aires de chaque maille") … … 302 380 dims2(1) = idim_rlonv 303 381 dims2(2) = idim_rlatu 382 cIM 220306 BEG 383 #ifdef NC_DOUBLE 384 ierr = NF_DEF_VAR (nid,"phisinit",NF_DOUBLE,2,dims2,nvarid) 385 #else 304 386 ierr = NF_DEF_VAR (nid,"phisinit",NF_FLOAT,2,dims2,nvarid) 387 #endif 388 cIM 220306 END 305 389 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 19, 306 390 . "Geopotentiel au sol") … … 316 400 ierr = NF_REDEF (nid) ! entrer dans le mode de definition 317 401 c 402 cIM 220306 BEG 403 #ifdef NC_DOUBLE 404 ierr = NF_DEF_VAR (nid,"temps",NF_DOUBLE,1,idim_tim,nvarid) 405 #else 318 406 ierr = NF_DEF_VAR (nid,"temps",NF_FLOAT,1,idim_tim,nvarid) 407 #endif 408 cIM 220306 END 319 409 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 19, 320 410 . "Temps de simulation") … … 329 419 dims4(3) = idim_s 330 420 dims4(4) = idim_tim 421 cIM 220306 BEG 422 #ifdef NC_DOUBLE 423 ierr = NF_DEF_VAR (nid,"ucov",NF_DOUBLE,4,dims4,nvarid) 424 #else 331 425 ierr = NF_DEF_VAR (nid,"ucov",NF_FLOAT,4,dims4,nvarid) 426 #endif 427 cIM 220306 END 332 428 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 9, 333 429 . "Vitesse U") … … 337 433 dims4(3) = idim_s 338 434 dims4(4) = idim_tim 435 cIM 220306 BEG 436 #ifdef NC_DOUBLE 437 ierr = NF_DEF_VAR (nid,"vcov",NF_DOUBLE,4,dims4,nvarid) 438 #else 339 439 ierr = NF_DEF_VAR (nid,"vcov",NF_FLOAT,4,dims4,nvarid) 440 #endif 441 cIM 220306 END 340 442 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 9, 341 443 . "Vitesse V") … … 345 447 dims4(3) = idim_s 346 448 dims4(4) = idim_tim 449 cIM 220306 BEG 450 #ifdef NC_DOUBLE 451 ierr = NF_DEF_VAR (nid,"teta",NF_DOUBLE,4,dims4,nvarid) 452 #else 347 453 ierr = NF_DEF_VAR (nid,"teta",NF_FLOAT,4,dims4,nvarid) 454 #endif 455 cIM 220306 END 348 456 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 11, 349 457 . "Temperature") … … 355 463 IF(nq.GE.1) THEN 356 464 DO iq=1,nq 465 cIM 220306 BEG 466 #ifdef NC_DOUBLE 467 ierr = NF_DEF_VAR (nid,tname(iq),NF_DOUBLE,4,dims4,nvarid) 468 #else 357 469 ierr = NF_DEF_VAR (nid,tname(iq),NF_FLOAT,4,dims4,nvarid) 470 #endif 471 cIM 220306 END 358 472 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 12,ttext(iq)) 359 473 ENDDO … … 364 478 dims4(3) = idim_s 365 479 dims4(4) = idim_tim 480 cIM 220306 BEG 481 #ifdef NC_DOUBLE 482 ierr = NF_DEF_VAR (nid,"masse",NF_DOUBLE,4,dims4,nvarid) 483 #else 366 484 ierr = NF_DEF_VAR (nid,"masse",NF_FLOAT,4,dims4,nvarid) 485 #endif 486 cIM 220306 END 367 487 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 12, 368 488 . "C est quoi ?") … … 371 491 dims3(2) = idim_rlatu 372 492 dims3(3) = idim_tim 493 cIM 220306 BEG 494 #ifdef NC_DOUBLE 495 ierr = NF_DEF_VAR (nid,"ps",NF_DOUBLE,3,dims3,nvarid) 496 #else 373 497 ierr = NF_DEF_VAR (nid,"ps",NF_FLOAT,3,dims3,nvarid) 498 #endif 499 cIM 220306 END 374 500 ierr = NF_PUT_ATT_TEXT (nid, nvarid, "title", 15, 375 501 . "Pression au sol") … … 377 503 ierr = NF_ENDDEF(nid) ! sortir du mode de definition 378 504 ierr = NF_CLOSE(nid) ! fermer le fichier 505 379 506 380 507 PRINT*,'iim,jjm,llm,iday_end',iim,jjm,llm,iday_end
Note: See TracChangeset
for help on using the changeset viewer.