Changeset 14275 for NEMO/trunk/src/OCE/LBC
- Timestamp:
- 2021-01-07T13:13:16+01:00 (3 years ago)
- Location:
- NEMO/trunk/src/OCE/LBC
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
NEMO/trunk/src/OCE/LBC/lib_mpp.F90
r14229 r14275 122 122 #endif 123 123 124 INTEGER, PARAMETER :: nprocmax = 2**10 ! maximun dimension (required to be a power of 2)125 126 124 INTEGER, PUBLIC :: mppsize ! number of process 127 125 INTEGER, PUBLIC :: mpprank ! process number [ 0 - size-1 ] … … 1002 1000 !!---------------------------------------------------------------------- 1003 1001 #if ! defined key_mpi_off 1004 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ngrp_world : ', ngrp_world1005 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - mpi_comm_world : ', mpi_comm_world1006 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - mpi_comm_oce : ', mpi_comm_oce1002 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ngrp_world : ', ngrp_world 1003 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - mpi_comm_world : ', mpi_comm_world 1004 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - mpi_comm_oce : ', mpi_comm_oce 1007 1005 ! 1008 1006 ALLOCATE( kwork(jpnij), STAT=ierr ) … … 1015 1013 ! 1016 1014 CALL MPI_ALLGATHER ( njmpp, 1, mpi_integer, kwork, 1, mpi_integer, mpi_comm_oce, ierr ) 1017 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - kwork pour njmpp : ', kwork1015 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - kwork pour njmpp : ', kwork 1018 1016 !-$$ CALL flush(numout) 1019 1017 ! … … 1025 1023 ENDIF 1026 1024 END DO 1027 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ndim_rank_znl : ', ndim_rank_znl1025 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ndim_rank_znl : ', ndim_rank_znl 1028 1026 !-$$ CALL flush(numout) 1029 1027 ! Allocate the right size to nrank_znl … … 1038 1036 ENDIF 1039 1037 END DO 1040 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - nrank_znl : ', nrank_znl1038 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - nrank_znl : ', nrank_znl 1041 1039 !-$$ CALL flush(numout) 1042 1040 1043 1041 ! Create the opa group 1044 1042 CALL MPI_COMM_GROUP(mpi_comm_oce,ngrp_opa,ierr) 1045 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ngrp_opa : ', ngrp_opa1043 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ngrp_opa : ', ngrp_opa 1046 1044 !-$$ CALL flush(numout) 1047 1045 1048 1046 ! Create the znl group from the opa group 1049 1047 CALL MPI_GROUP_INCL ( ngrp_opa, ndim_rank_znl, nrank_znl, ngrp_znl, ierr ) 1050 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ngrp_znl ', ngrp_znl1048 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ngrp_znl ', ngrp_znl 1051 1049 !-$$ CALL flush(numout) 1052 1050 1053 1051 ! Create the znl communicator from the opa communicator, ie the pool of procs in the same row 1054 1052 CALL MPI_COMM_CREATE ( mpi_comm_oce, ngrp_znl, ncomm_znl, ierr ) 1055 !-$$ WRITE (numout,*) 'mpp_ini_znl ', nproc, ' - ncomm_znl ', ncomm_znl1053 !-$$ WRITE (numout,*) 'mpp_ini_znl ', mpprank, ' - ncomm_znl ', ncomm_znl 1056 1054 !-$$ CALL flush(numout) 1057 1055 ! -
NEMO/trunk/src/OCE/LBC/mppini.F90
r14229 r14275 133 133 !! nbondi : mark for "east-west local boundary" 134 134 !! nbondj : mark for "north-south local boundary" 135 !! nproc : number for local processor136 135 !! noea : number for local neighboring processor 137 136 !! nowe : number for local neighboring processor … … 506 505 507 506 ! just to save nono etc for all proc 508 ! warning ii*ij (zone) /= nproc(processors)!507 ! warning ii*ij (zone) /= mpprank (processors)! 509 508 ! ioso = zone number, ii_noso = proc number 510 509 ii_noso(:) = -1 … … 641 640 WRITE(inum,'(6i8,a,3i8,a)') jpnij,jpimax,jpjmax,jpk,jpiglo,jpjglo,& 642 641 & ' ( local: ',narea,jpi,jpj,' )' 643 WRITE(inum,'(a)') 'n procjpi jpj Nis0 Njs0 Nie0 Nje0 nimp njmp nono noso nowe noea nbondi nbondj '642 WRITE(inum,'(a)') 'narea jpi jpj Nis0 Njs0 Nie0 Nje0 nimp njmp nono noso nowe noea nbondi nbondj ' 644 643 645 644 DO jproc = 1, jpnij 646 WRITE(inum,'(13i5,2i7)') jproc-1, jpiall(jproc), jpjall(jproc), &645 WRITE(inum,'(13i5,2i7)') jproc, jpiall(jproc), jpjall(jproc), & 647 646 & nis0all(jproc), njs0all(jproc), & 648 647 & nie0all(jproc), nje0all(jproc), & … … 668 667 ENDIF 669 668 ! 670 nproc = narea-1671 669 IF(lwp) THEN 672 670 WRITE(numout,*) 673 671 WRITE(numout,*) ' resulting internal parameters : ' 674 WRITE(numout,*) ' n proc = ', nproc672 WRITE(numout,*) ' narea = ', narea 675 673 WRITE(numout,*) ' nowe = ', nowe , ' noea = ', noea 676 674 WRITE(numout,*) ' nono = ', nono , ' noso = ', noso … … 1326 1324 ENDIF 1327 1325 ! 1328 CALL flio_dom_set ( jpnij, n proc, idid, iglo, iloc, iabsf, iabsl, ihals, ihale, 'BOX', nidom)1326 CALL flio_dom_set ( jpnij, narea-1, idid, iglo, iloc, iabsf, iabsl, ihals, ihale, 'BOX', nidom) 1329 1327 ! 1330 1328 END SUBROUTINE init_ioipsl
Note: See TracChangeset
for help on using the changeset viewer.