Changeset 2599 for palm/trunk/SOURCE/pmc_mpi_wrapper_mod.f90
- Timestamp:
- Nov 1, 2017 1:18:45 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
palm/trunk/SOURCE/pmc_mpi_wrapper_mod.f90
r2101 r2599 26 26 ! ----------------- 27 27 ! $Id$ 28 ! Some cleanup and commenting improvements only. 29 ! 30 ! 2101 2017-01-05 16:42:31Z suehring 28 31 ! 29 32 ! 2000 2016-08-20 18:09:15Z knoop … … 142 145 INTEGER, INTENT(OUT) :: ierr !< 143 146 147 144 148 ierr = 0 145 149 CALL MPI_SEND( buf, n, MPI_INTEGER, parent_rank, tag, m_to_parent_comm, & 146 ierr )150 ierr ) 147 151 148 152 END SUBROUTINE pmc_send_to_parent_integer … … 160 164 INTEGER, INTENT(OUT) :: ierr !< 161 165 166 162 167 ierr = 0 163 168 CALL MPI_RECV( buf, n, MPI_INTEGER, parent_rank, tag, m_to_parent_comm, & … … 178 183 INTEGER, INTENT(OUT) :: ierr !< 179 184 185 180 186 ierr = 0 181 187 CALL MPI_SEND( buf, n, MPI_INTEGER, parent_rank, tag, m_to_parent_comm, & … … 196 202 INTEGER, INTENT(OUT) :: ierr !< 197 203 204 198 205 ierr = 0 199 206 CALL MPI_SEND( buf, n, MPI_REAL, parent_rank, tag, m_to_parent_comm, ierr ) … … 213 220 INTEGER, INTENT(OUT) :: ierr !< 214 221 222 215 223 ierr = 0 216 224 CALL MPI_RECV( buf, n, MPI_REAL, parent_rank, tag, m_to_parent_comm, & … … 231 239 INTEGER, INTENT(OUT) :: ierr !< 232 240 241 233 242 ierr = 0 234 243 CALL MPI_SEND( buf, n, MPI_REAL, parent_rank, tag, m_to_parent_comm, ierr ) … … 265 274 INTEGER, INTENT(OUT) :: ierr !< 266 275 276 267 277 ierr = 0 268 278 CALL MPI_SEND( buf, n, MPI_REAL, parent_rank, tag, m_to_parent_comm, ierr ) … … 282 292 INTEGER, INTENT(OUT) :: ierr !< 283 293 294 284 295 ierr = 0 285 296 CALL MPI_RECV( buf, n, MPI_REAL, parent_rank, tag, m_to_parent_comm, & … … 302 313 INTEGER, INTENT(OUT) :: ierr !< 303 314 315 304 316 ierr = 0 305 317 CALL MPI_SEND( buf, n, MPI_INTEGER, child_rank, tag, & … … 322 334 INTEGER, INTENT(OUT) :: ierr !< 323 335 336 324 337 ierr = 0 325 338 CALL MPI_RECV( buf, n, MPI_INTEGER, child_rank, tag, & … … 342 355 INTEGER, INTENT(OUT) :: ierr !< 343 356 357 344 358 ierr = 0 345 359 CALL MPI_RECV( buf, n, MPI_INTEGER, child_rank, tag, & … … 362 376 INTEGER, INTENT(OUT) :: ierr !< 363 377 378 364 379 ierr = 0 365 380 CALL MPI_SEND( buf, n, MPI_REAL, child_rank, tag, & … … 382 397 INTEGER, INTENT(OUT) :: ierr !< 383 398 399 384 400 ierr = 0 385 401 CALL MPI_RECV( buf, n, MPI_REAL, child_rank, tag, & … … 402 418 INTEGER, INTENT(OUT) :: ierr !< 403 419 420 404 421 ierr = 0 405 422 CALL MPI_SEND( buf, n, MPI_REAL, child_rank, tag, & … … 422 439 INTEGER, INTENT(OUT) :: ierr !< 423 440 441 424 442 ierr = 0 425 443 CALL MPI_RECV( buf, n, MPI_REAL, child_rank, tag, & … … 431 449 432 450 SUBROUTINE pmc_send_to_child_real_r3( child_id, buf, n, child_rank, tag, & 433 ierr )451 ierr ) 434 452 435 453 IMPLICIT NONE … … 442 460 INTEGER, INTENT(OUT) :: ierr !< 443 461 462 444 463 ierr = 0 445 464 CALL MPI_SEND( buf, n, MPI_REAL, child_rank, tag, & … … 462 481 INTEGER, INTENT(OUT) :: ierr !< 463 482 483 464 484 ierr = 0 465 485 CALL MPI_RECV( buf, n, MPI_REAL, child_rank, tag, & … … 511 531 INTEGER :: myerr !< 512 532 533 513 534 IF ( PRESENT( comm ) ) THEN 514 535 mycomm = comm … … 540 561 541 562 ! 542 !-- P E 0 on parent broadcast to all child PEs563 !-- Process 0 on parent broadcast to all child processes 543 564 IF ( PRESENT( child_id ) ) THEN 544 565 … … 581 602 TYPE(C_PTR) :: p_myind !< 582 603 604 583 605 winsize = idim1 * C_SIZEOF( ierr ) 584 606 … … 605 627 TYPE(C_PTR) :: p_myind !< 606 628 629 607 630 winsize = idim1 * wp 608 631 … … 623 646 REAL(kind=wp) :: pmc_time !< 624 647 648 625 649 pmc_time = MPI_WTIME() 626 650
Note: See TracChangeset
for help on using the changeset viewer.