Changeset 493 for palm/trunk/SOURCE/close_file.f90
- Timestamp:
- Mar 1, 2010 8:30:24 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/close_file.f90
r449 r493 4 4 ! Current revisions: 5 5 ! ----------------- 6 ! 6 ! Adjustments for NetCDF parallel data output 7 7 ! 8 8 ! Former revisions: … … 409 409 CASE ( 101 ) 410 410 411 IF ( myid == 0 .AND. netcdf_output ) THEN 411 IF ( netcdf_output .AND. & 412 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 412 413 nc_stat = NF90_CLOSE( id_set_xy(0) ) 413 414 CALL handle_netcdf_error( 'close_file', 44 ) … … 416 417 CASE ( 102 ) 417 418 418 IF ( myid == 0 .AND. netcdf_output ) THEN 419 IF ( netcdf_output .AND. & 420 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 419 421 nc_stat = NF90_CLOSE( id_set_xz(0) ) 420 422 CALL handle_netcdf_error( 'close_file', 45 ) … … 423 425 CASE ( 103 ) 424 426 425 IF ( myid == 0 .AND. netcdf_output ) THEN 427 IF ( netcdf_output .AND. & 428 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 426 429 nc_stat = NF90_CLOSE( id_set_yz(0) ) 427 430 CALL handle_netcdf_error( 'close_file', 46 ) … … 444 447 CASE ( 106 ) 445 448 446 IF ( myid == 0 .AND. netcdf_output ) THEN 449 IF ( netcdf_output .AND. & 450 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 447 451 nc_stat = NF90_CLOSE( id_set_3d(0) ) 448 452 CALL handle_netcdf_error( 'close_file', 49 ) … … 472 476 CASE ( 111 ) 473 477 474 IF ( myid == 0 .AND. netcdf_output ) THEN 478 IF ( netcdf_output .AND. & 479 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 475 480 nc_stat = NF90_CLOSE( id_set_xy(1) ) 476 481 CALL handle_netcdf_error( 'close_file', 52 ) … … 479 484 CASE ( 112 ) 480 485 481 IF ( myid == 0 .AND. netcdf_output ) THEN 486 IF ( netcdf_output .AND. & 487 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 482 488 nc_stat = NF90_CLOSE( id_set_xz(1) ) 483 489 CALL handle_netcdf_error( 'close_file', 352 ) … … 486 492 CASE ( 113 ) 487 493 488 IF ( myid == 0 .AND. netcdf_output ) THEN 494 IF ( netcdf_output .AND. & 495 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 489 496 nc_stat = NF90_CLOSE( id_set_yz(1) ) 490 497 CALL handle_netcdf_error( 'close_file', 353 ) … … 493 500 CASE ( 116 ) 494 501 495 IF ( myid == 0 .AND. netcdf_output ) THEN 502 IF ( netcdf_output .AND. & 503 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 496 504 nc_stat = NF90_CLOSE( id_set_3d(1) ) 497 505 CALL handle_netcdf_error( 'close_file', 353 ) … … 500 508 CASE ( 121:160 ) 501 509 502 IF ( format_parallel_io ) THEN 510 IF ( netcdf_output .AND. & 511 ( myid == 0 .OR. netcdf_data_format > 2 ) ) THEN 503 512 ! 504 513 !-- decompose fid into mid and av … … 513 522 CALL handle_netcdf_error( 'close_file', 9998 ) 514 523 515 ELSEIF ( myid == 0 .AND. netcdf_output ) THEN516 !517 !-- decompose fid into mid and av518 IF ( fid <= 140 ) THEN519 mid = fid - 120520 av = 0521 ELSE522 mid = fid - 140523 av = 1524 ENDIF525 nc_stat = NF90_CLOSE( id_set_mask(mid,av) )526 CALL handle_netcdf_error( 'close_file', 9998 )527 528 524 ENDIF 529 525
Note: See TracChangeset
for help on using the changeset viewer.