Changeset 2599 for palm/trunk/SOURCE/parin.f90
- Timestamp:
- Nov 1, 2017 1:18:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/parin.f90
r2575 r2599 25 25 ! ----------------- 26 26 ! $Id$ 27 ! The i/o grouping is updated to work correctly also in nested runs. 28 ! 29 ! 2575 2017-10-24 09:57:58Z maronga 27 30 ! Renamed phi -> latitude, added longitude 28 31 ! … … 390 393 INTEGER(iwp) :: i !< 391 394 INTEGER(iwp) :: ioerr !< error flag for open/read/write 392 395 INTEGER(iwp) :: myworldid !< 396 INTEGER(iwp) :: numworldprocs !< 393 397 394 398 NAMELIST /inipar/ aerosol_bulk, alpha_surface, approximation, bc_e_b, & … … 513 517 514 518 CALL location_message( 'finished', .TRUE. ) 515 516 519 ! 517 520 !-- Calculate the number of groups into which parallel I/O is split. … … 522 525 !-- system. 523 526 !-- First, set the default: 527 CALL MPI_COMM_RANK( MPI_COMM_WORLD, myworldid, ierr ) 528 CALL MPI_COMM_SIZE( MPI_COMM_WORLD, numworldprocs, ierr ) 524 529 IF ( maximum_parallel_io_streams == -1 .OR. & 525 maximum_parallel_io_streams > num procs ) THEN526 maximum_parallel_io_streams = num procs530 maximum_parallel_io_streams > numworldprocs ) THEN 531 maximum_parallel_io_streams = numworldprocs 527 532 ENDIF 528 533 ! … … 532 537 !-- These settings are repeated in init_pegrid for the communicator comm2d, 533 538 !-- which is not available here 534 io_blocks = numprocs / maximum_parallel_io_streams 535 io_group = MOD( myid+1, io_blocks ) 536 539 !io_blocks = numprocs / maximum_parallel_io_streams 540 io_blocks = numworldprocs / maximum_parallel_io_streams 541 !io_group = MOD( myid+1, io_blocks ) 542 io_group = MOD( myworldid+1, io_blocks ) 543 537 544 CALL location_message( 'reading NAMELIST parameters from PARIN', .FALSE. ) 538 545 !
Note: See TracChangeset
for help on using the changeset viewer.