Changeset 4894 for palm/trunk/SOURCE


Ignore:
Timestamp:
Mar 3, 2021 7:08:47 AM (4 years ago)
Author:
raasch
Message:

bugfix for r4893 to avoid compile errors in serial mode

File:
1 edited

Legend:

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

    r4893 r4894  
    2525! -----------------
    2626! $Id$
     27! bugfix for r4893 to avoid compile errors in serial mode
     28!
     29! 4893 2021-03-02 16:39:14Z raasch
    2730! revised output of surface data via MPI-IO for better performance
    2831!
     
    249252    IMPLICIT NONE
    250253
    251     CLASS(sm_class), INTENT(INOUT) ::  this        !< pointer to access internal variables of this call
    252     INTEGER(iwp), INTENT(IN), OPTIONAL ::  comm_input  !< main model communicator (comm2d) can optional be set
     254    CLASS(sm_class), INTENT(INOUT) ::  this  !< pointer to access internal variables of this call
     255    INTEGER(iwp), INTENT(IN), OPTIONAL ::  comm_input  !< main model communicator (comm2d)
    253256
    254257#if defined( __parallel )
     
    259262    LOGICAL, INTENT(IN) ::  sm_active  !< flag to activate shared-memory IO
    260263
     264
    261265    this%nr_io_pe_per_node = 2
     266
     267!
     268!-- Next line is just to avoid compile errors in serial mode because of unused arguments
     269    IF ( PRESENT( comm_input )  .AND.  sm_active )  CONTINUE
    262270
    263271#if defined( __parallel )
     
    15021510#if defined( __parallel )
    15031511    CALL MPI_BARRIER( this%comm_shared, ierr )
     1512#endif
    15041513    IF ( PRESENT(win) )  THEN
     1514#if defined( __parallel )
    15051515       CALL MPI_WIN_FENCE(0, win, ierr )
    1506     ENDIF
     1516#else
     1517       CONTINUE
    15071518#endif
     1519    ENDIF
    15081520
    15091521 END SUBROUTINE sm_node_barrier
Note: See TracChangeset for help on using the changeset viewer.