Changeset 544 for LMDZ.3.3/branches/rel-LF/libf/phylmd/oasis.psmile
- Timestamp:
- Aug 31, 2004, 1:09:09 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ.3.3/branches/rel-LF/libf/phylmd/oasis.psmile
r500 r544 20 20 integer, dimension(jpfldo2a), save :: in_var_id 21 21 integer, dimension(jpflda2o1+jpflda2o2), save :: il_out_var_id 22 CHARACTER (len=8), dimension(jpmaxfld), save :: cl_writ, cl_read22 CHARACTER (len=8), dimension(jpmaxfld), public, save :: cl_writ, cl_read 23 23 CHARACTER (len=8), dimension(jpmaxfld), save :: cl_f_writ, cl_f_read 24 24 25 CONTAINS25 CONTAINS 26 26 27 27 !**** … … 58 58 ! 59 59 integer :: comp_id 60 integer :: ierror 60 integer :: ierror, il_commlocal 61 61 integer :: il_part_id 62 62 integer, dimension(:), allocatable :: ig_paral 63 integer, dimension(jpfldo2a) :: in_var_id64 integer, dimension(jpflda2o1+jpflda2o2) :: il_out_var_id63 ! integer, dimension(jpfldo2a) :: in_var_id 64 ! integer, dimension(jpflda2o1+jpflda2o2) :: il_out_var_id 65 65 integer, dimension(2) :: il_var_nodims 66 66 integer, dimension(4) :: il_var_actual_shape … … 103 103 ENDIF 104 104 105 ! PSMILe attribution of local communicator 106 ! 107 call prism_get_localcomm_proto (il_commlocal, ierror) 105 108 ! 106 109 ! and domain decomposition … … 108 111 ! monoproc case 109 112 ! 110 allocate(ig_paral(3)) 111 ig_paral(1) = 0 112 ig_paral(2) = 0 113 ig_paral(3) = im * jm 114 113 ! allocate(ig_paral(3)) 114 ! ig_paral(1) = 0 115 ! ig_paral(2) = 0 116 ! ig_paral(3) = im * jm 117 allocate(ig_paral(5)) 118 ig_paral (1) = 2 119 ig_paral (2) = 0 120 ig_paral (3) = im 121 ig_paral (4) = jm 122 ig_paral (5) = im 115 123 call prism_def_partition_proto (il_part_id, ig_paral, ierror) 116 124 deallocate(ig_paral) … … 238 246 239 247 call prism_get_proto(in_var_id(1), kt, sst, ierror) 240 IF (ierror .ne. PRISM_Ok) THEN 248 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Recvd .and. & 249 & ierror.ne.PRISM_FromRest & 250 & .and. ierror.ne.PRISM_Input .and. ierror.ne.PRISM_RecvOut & 251 & .and. ierror.ne.PRISM_FromRestOut ) THEN 241 252 WRITE (nuout,*) cl_read(1), kt 242 253 abort_message=' Probleme dans prism_get_proto ' … … 244 255 endif 245 256 call prism_get_proto(in_var_id(2), kt, gla, ierror) 246 IF (ierror .ne. PRISM_Ok) THEN 257 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Recvd .and. & 258 & ierror.ne.PRISM_FromRest & 259 & .and. ierror.ne.PRISM_Input .and. ierror.ne.PRISM_RecvOut & 260 & .and. ierror.ne.PRISM_FromRestOut ) THEN 247 261 WRITE (nuout,*) cl_read(2), kt 248 262 abort_message=' Probleme dans prism_get_proto ' … … 250 264 endif 251 265 call prism_get_proto(in_var_id(3), kt, albedo, ierror) 252 IF (ierror .ne. PRISM_Ok) THEN 266 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Recvd .and. & 267 & ierror.ne.PRISM_FromRest & 268 & .and. ierror.ne.PRISM_Input .and. ierror.ne.PRISM_RecvOut & 269 & .and. ierror.ne.PRISM_FromRestOut ) THEN 253 270 WRITE (nuout,*) cl_read(3), kt 254 271 abort_message=' Probleme dans prism_get_proto ' … … 256 273 endif 257 274 call prism_get_proto(in_var_id(4), kt, tice, ierror) 258 IF (ierror .ne. PRISM_Ok) THEN 275 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Recvd .and. & 276 & ierror.ne.PRISM_FromRest & 277 & .and. ierror.ne.PRISM_Input .and. ierror.ne.PRISM_RecvOut & 278 & .and. ierror.ne.PRISM_FromRestOut ) THEN 259 279 WRITE (nuout,*) cl_read(4), kt 260 280 abort_message=' Probleme dans prism_get_proto ' … … 306 326 307 327 call prism_put_proto(il_out_var_id(1), kt, fsolice, ierror) 308 IF (ierror .ne. PRISM_Ok) THEN 328 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 329 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 330 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 309 331 WRITE (nuout,*) cl_writ(1), kt 310 332 abort_message=' Probleme dans prism_put_proto ' … … 312 334 endif 313 335 call prism_put_proto(il_out_var_id(2), kt, fsolwat, ierror) 314 IF (ierror .ne. PRISM_Ok) THEN 336 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 337 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 338 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 315 339 WRITE (nuout,*) cl_writ(2), kt 316 340 abort_message=' Probleme dans prism_put_proto ' … … 318 342 endif 319 343 call prism_put_proto(il_out_var_id(3), kt, fnsolice, ierror) 320 IF (ierror .ne. PRISM_Ok) THEN 344 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 345 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 346 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 321 347 WRITE (nuout,*) cl_writ(3), kt 322 348 abort_message=' Probleme dans prism_put_proto ' … … 324 350 endif 325 351 call prism_put_proto(il_out_var_id(4), kt, fnsolwat, ierror) 326 IF (ierror .ne. PRISM_Ok) THEN 352 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 353 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 354 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 327 355 WRITE (nuout,*) cl_writ(4), kt 328 356 abort_message=' Probleme dans prism_put_proto ' … … 330 358 endif 331 359 call prism_put_proto(il_out_var_id(5), kt, fnsicedt, ierror) 332 IF (ierror .ne. PRISM_Ok) THEN 360 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 361 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 362 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 333 363 WRITE (nuout,*) cl_writ(5), kt 334 364 abort_message=' Probleme dans prism_put_proto ' … … 336 366 endif 337 367 call prism_put_proto(il_out_var_id(6), kt, evice, ierror) 338 IF (ierror .ne. PRISM_Ok) THEN 368 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 369 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 370 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 339 371 WRITE (nuout,*) cl_writ(6), kt 340 372 abort_message=' Probleme dans prism_put_proto ' … … 342 374 endif 343 375 call prism_put_proto(il_out_var_id(7), kt, evwat, ierror) 344 IF (ierror .ne. PRISM_Ok) THEN 376 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 377 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 378 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 345 379 WRITE (nuout,*) cl_writ(7), kt 346 380 abort_message=' Probleme dans prism_put_proto ' … … 348 382 endif 349 383 call prism_put_proto(il_out_var_id(8), kt, lpre, ierror) 350 IF (ierror .ne. PRISM_Ok) THEN 384 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 385 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 386 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 351 387 WRITE (nuout,*) cl_writ(8), kt 352 388 abort_message=' Probleme dans prism_put_proto ' … … 354 390 endif 355 391 call prism_put_proto(il_out_var_id(9), kt, spre, ierror) 356 IF (ierror .ne. PRISM_Ok) THEN 392 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 393 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 394 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 357 395 WRITE (nuout,*) cl_writ(9), kt 358 396 abort_message=' Probleme dans prism_put_proto ' … … 360 398 endif 361 399 call prism_put_proto(il_out_var_id(10), kt, dirunoff, ierror) 362 IF (ierror .ne. PRISM_Ok) THEN 400 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 401 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 402 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 363 403 WRITE (nuout,*) cl_writ(10), kt 364 404 abort_message=' Probleme dans prism_put_proto ' … … 366 406 endif 367 407 call prism_put_proto(il_out_var_id(11), kt, rivrunoff, ierror) 368 IF (ierror .ne. PRISM_Ok) THEN 408 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 409 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 410 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 369 411 WRITE (nuout,*) cl_writ(11), kt 370 412 abort_message=' Probleme dans prism_put_proto ' … … 372 414 endif 373 415 call prism_put_proto(il_out_var_id(12), kt, calving, ierror) 374 IF (ierror .ne. PRISM_Ok) THEN 416 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 417 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 418 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 375 419 WRITE (nuout,*) cl_writ(12), kt 376 420 abort_message=' Probleme dans prism_put_proto ' … … 378 422 endif 379 423 call prism_put_proto(il_out_var_id(13), kt, tauxx_u, ierror) 380 IF (ierror .ne. PRISM_Ok) THEN 424 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 425 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 426 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 381 427 WRITE (nuout,*) cl_writ(13), kt 382 428 abort_message=' Probleme dans prism_put_proto ' … … 384 430 endif 385 431 call prism_put_proto(il_out_var_id(14), kt, tauyy_u, ierror) 386 IF (ierror .ne. PRISM_Ok) THEN 432 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 433 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 434 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 387 435 WRITE (nuout,*) cl_writ(14), kt 388 436 abort_message=' Probleme dans prism_put_proto ' … … 390 438 endif 391 439 call prism_put_proto(il_out_var_id(15), kt, tauzz_u, ierror) 392 IF (ierror .ne. PRISM_Ok) THEN 440 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 441 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 442 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 393 443 WRITE (nuout,*) cl_writ(15), kt 394 444 abort_message=' Probleme dans prism_put_proto ' … … 396 446 endif 397 447 call prism_put_proto(il_out_var_id(16), kt, tauxx_v, ierror) 398 IF (ierror .ne. PRISM_Ok) THEN 448 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 449 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 450 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 399 451 WRITE (nuout,*) cl_writ(16), kt 400 452 abort_message=' Probleme dans prism_put_proto ' … … 402 454 endif 403 455 call prism_put_proto(il_out_var_id(17), kt, tauyy_v, ierror) 404 IF (ierror .ne. PRISM_Ok) THEN 456 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 457 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 458 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 405 459 WRITE (nuout,*) cl_writ(17), kt 406 460 abort_message=' Probleme dans prism_put_proto ' … … 408 462 endif 409 463 call prism_put_proto(il_out_var_id(18), kt, tauzz_v, ierror) 410 IF (ierror .ne. PRISM_Ok) THEN 464 IF (ierror .ne. PRISM_Ok .and. ierror.ne.PRISM_Sent .and. ierror.ne.PRISM_ToRest & 465 & .and. ierror.ne.PRISM_LocTrans .and. ierror.ne.PRISM_Output .and. & 466 & ierror.ne.PRISM_SentOut .and. ierror.ne.PRISM_ToRestOut ) THEN 411 467 WRITE (nuout,*) cl_writ(18), kt 412 468 abort_message=' Probleme dans prism_put_proto '
Note: See TracChangeset
for help on using the changeset viewer.