Changeset 854 for LMDZ4/trunk/libf/phytherm
- Timestamp:
- Oct 23, 2007, 2:03:16 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
LMDZ4/trunk/libf/phytherm/surf_land_orchidee_mod.F90
r837 r854 485 485 INTEGER :: MyLastPoint 486 486 INTEGER :: LastPoint 487 INTEGER :: mpi_rank 488 INTEGER :: mpi_size 489 INTEGER :: ierr 487 INTEGER :: mpi_rank_orch 488 INTEGER :: mpi_size_orch 489 INTEGER :: ierr 490 490 ! 491 491 ! End definition … … 496 496 IF (is_parallel) THEN 497 497 #ifdef CPP_PARA 498 CALL MPI_COMM_SIZE(orch_comm,mpi_size ,ierr)499 CALL MPI_COMM_RANK(orch_comm,mpi_rank ,ierr)498 CALL MPI_COMM_SIZE(orch_comm,mpi_size_orch,ierr) 499 CALL MPI_COMM_RANK(orch_comm,mpi_rank_orch,ierr) 500 500 #endif 501 501 ELSE 502 mpi_rank =0503 mpi_size =1504 ENDIF 505 502 mpi_rank_orch=0 503 mpi_size_orch=1 504 ENDIF 505 506 506 IF (is_parallel) THEN 507 IF ( .NOT. is_north_pole) THEN507 IF (mpi_rank_orch /= 0) THEN 508 508 #ifdef CPP_PARA 509 CALL MPI_RECV(LastPoint,1,MPI_INTEGER,mpi_rank -1,1234,orch_comm,status,ierr)510 #endif 511 ENDIF 512 513 IF ( .NOT. is_south_pole) THEN509 CALL MPI_RECV(LastPoint,1,MPI_INTEGER,mpi_rank_orch-1,1234,orch_comm,status,ierr) 510 #endif 511 ENDIF 512 513 IF (mpi_rank_orch /= mpi_size_orch-1) THEN 514 514 #ifdef CPP_PARA 515 CALL MPI_SEND(MyLastPoint,1,MPI_INTEGER,mpi_rank +1,1234,orch_comm,ierr)516 #endif 517 ENDIF 518 ENDIF 519 520 IF ( is_north_pole) THEN515 CALL MPI_SEND(MyLastPoint,1,MPI_INTEGER,mpi_rank_orch+1,1234,orch_comm,ierr) 516 #endif 517 ENDIF 518 ENDIF 519 520 IF (mpi_rank_orch == 0) THEN 521 521 offset=0 522 522 ELSE
Note: See TracChangeset
for help on using the changeset viewer.