Ignore:
Timestamp:
Jun 29, 2017 9:28:18 AM (7 years ago)
Author:
raasch
Message:

write_binary is of type LOGICAL now, MPI2-related code removed, obsolete variables removed, sendrecv_in_background related parts removed, missing variable descriptions added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • palm/trunk/SOURCE/init_pegrid.f90

    r2271 r2298  
    2525! -----------------
    2626! $Id$
     27! MPI2 related parts removed
     28!
     29! 2271 2017-06-09 12:34:55Z sward
    2730! Error message changed
    2831!
     
    261264    INTEGER(iwp), DIMENSION(2) :: pdims_remote          !<
    262265
    263 #if defined( __mpi2 )
    264     LOGICAL ::  found                                   !<
    265 #endif
    266 
    267266!
    268267!-- Get the number of OpenMP threads
     
    627626
    628627#if defined( __parallel )
    629 #if defined( __mpi2 )
    630 !
    631 !-- In case of coupled runs, get the port name on PE0 of the atmosphere model
    632 !-- and pass it to PE0 of the ocean model
    633     IF ( myid == 0 )  THEN
    634 
    635        IF ( coupling_mode == 'atmosphere_to_ocean' )  THEN
    636 
    637           CALL MPI_OPEN_PORT( MPI_INFO_NULL, port_name, ierr )
    638 
    639           CALL MPI_PUBLISH_NAME( 'palm_coupler', MPI_INFO_NULL, port_name, &
    640                                  ierr )
    641 
    642 !
    643 !--       Write a flag file for the ocean model and the other atmosphere
    644 !--       processes.
    645 !--       There seems to be a bug in MPICH2 which causes hanging processes
    646 !--       in case that execution of LOOKUP_NAME is continued too early
    647 !--       (i.e. before the port has been created)
    648           OPEN( 90, FILE='COUPLING_PORT_OPENED', FORM='FORMATTED' )
    649           WRITE ( 90, '(''TRUE'')' )
    650           CLOSE ( 90 )
    651 
    652        ELSEIF ( coupling_mode == 'ocean_to_atmosphere' )  THEN
    653 
    654 !
    655 !--       Continue only if the atmosphere model has created the port.
    656 !--       There seems to be a bug in MPICH2 which causes hanging processes
    657 !--       in case that execution of LOOKUP_NAME is continued too early
    658 !--       (i.e. before the port has been created)
    659           INQUIRE( FILE='COUPLING_PORT_OPENED', EXIST=found )
    660           DO WHILE ( .NOT. found )
    661              INQUIRE( FILE='COUPLING_PORT_OPENED', EXIST=found )
    662           ENDDO
    663 
    664           CALL MPI_LOOKUP_NAME( 'palm_coupler', MPI_INFO_NULL, port_name, ierr )
    665 
    666        ENDIF
    667 
    668     ENDIF
    669 
    670 !
    671 !-- In case of coupled runs, establish the connection between the atmosphere
    672 !-- and the ocean model and define the intercommunicator (comm_inter)
    673     CALL MPI_BARRIER( comm2d, ierr )
    674     IF ( coupling_mode == 'atmosphere_to_ocean' )  THEN
    675 
    676        CALL MPI_COMM_ACCEPT( port_name, MPI_INFO_NULL, 0, MPI_COMM_WORLD, &
    677                              comm_inter, ierr )
    678        coupling_mode_remote = 'ocean_to_atmosphere'
    679 
    680     ELSEIF ( coupling_mode == 'ocean_to_atmosphere' )  THEN
    681 
    682        CALL MPI_COMM_CONNECT( port_name, MPI_INFO_NULL, 0, MPI_COMM_WORLD, &
    683                               comm_inter, ierr )
    684        coupling_mode_remote = 'atmosphere_to_ocean'
    685 
    686     ENDIF
    687 #endif
    688628
    689629!
Note: See TracChangeset for help on using the changeset viewer.