Changeset 4894
- Timestamp:
- Mar 3, 2021 7:08:47 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/shared_memory_io_mod.f90
r4893 r4894 25 25 ! ----------------- 26 26 ! $Id$ 27 ! bugfix for r4893 to avoid compile errors in serial mode 28 ! 29 ! 4893 2021-03-02 16:39:14Z raasch 27 30 ! revised output of surface data via MPI-IO for better performance 28 31 ! … … 249 252 IMPLICIT NONE 250 253 251 CLASS(sm_class), INTENT(INOUT) :: this 252 INTEGER(iwp), INTENT(IN), OPTIONAL :: comm_input !< main model communicator (comm2d) can optional be set254 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) 253 256 254 257 #if defined( __parallel ) … … 259 262 LOGICAL, INTENT(IN) :: sm_active !< flag to activate shared-memory IO 260 263 264 261 265 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 262 270 263 271 #if defined( __parallel ) … … 1502 1510 #if defined( __parallel ) 1503 1511 CALL MPI_BARRIER( this%comm_shared, ierr ) 1512 #endif 1504 1513 IF ( PRESENT(win) ) THEN 1514 #if defined( __parallel ) 1505 1515 CALL MPI_WIN_FENCE(0, win, ierr ) 1506 ENDIF 1516 #else 1517 CONTINUE 1507 1518 #endif 1519 ENDIF 1508 1520 1509 1521 END SUBROUTINE sm_node_barrier
Note: See TracChangeset
for help on using the changeset viewer.